Searched refs:VideoView2 (Results 1 - 19 of 19) sorted by relevance

/frameworks/support/media-widget/src/main/java/androidx/media/widget/
H A DVideoView2Impl.java45 VideoView2 instance, Context context,
53 * @param intervalMs a time interval in milliseconds until VideoView2 hides MediaControlView2.
58 * Returns MediaControlView2 instance which is currently attached to VideoView2 by default or by
72 * Returns MediaMetadata2 instance which is retrieved from MediaPlayer inside VideoView2 by
78 * Returns MediaController instance which is connected with MediaSession that VideoView2 is
79 * using. This method should be called when VideoView2 is attached to window, or it throws
91 * VideoView2 is attached to window, or it throws IllegalStateException.
100 * Default behavior of VideoView2 is not showing subtitle.
182 * Sets {@link MediaItem2} object to render using VideoView2. Alternative way to set media
183 * object to VideoView2 i
[all...]
H A DVideoView2.java54 * Displays a video file. VideoView2 class is a ViewGroup class which is wrapping
58 * <em> Data sources that VideoView2 supports : </em>
59 * VideoView2 can play video files and audio-only files as
65 * VideoView2 can render videos on top of TextureView as well as
73 * VideoView2 covers and inherits the most of
76 * <li> VideoView2 inherits ViewGroup and renders videos using SurfaceView and TextureView
78 * <li> VideoView2 is integrated with MediaControlView2 and a default MediaControlView2 instance is
79 * attached to VideoView2 by default.
82 * <li> VideoView2 is integrated with MediaSession and so it responses with media key events.
83 * A VideoView2 keep
104 public class VideoView2 extends BaseLayout { class in inherits:BaseLayout
134 public VideoView2(@NonNull Context context) { method in class:VideoView2
138 public VideoView2(@NonNull Context context, @Nullable AttributeSet attrs) { method in class:VideoView2
142 public VideoView2(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { method in class:VideoView2
[all...]
/frameworks/base/media/java/android/media/update/
H A DVideoView2Provider.java32 import android.widget.VideoView2;
49 * @see android.widget.VideoView2
89 Executor executor, VideoView2.OnCustomActionListener listener);
94 void setOnViewTypeChangedListener_impl(VideoView2.OnViewTypeChangedListener l);
98 void setFullScreenRequestListener_impl(VideoView2.OnFullScreenRequestListener l);
H A DStaticProvider.java53 import android.widget.VideoView2;
68 VideoView2Provider createVideoView2(VideoView2 instance,
/frameworks/base/core/java/android/widget/
H A DVideoView2.java51 * Displays a video file. VideoView2 class is a View class which is wrapping {@link MediaPlayer2}
55 * <em> Data sources that VideoView2 supports : </em>
56 * VideoView2 can play video files and audio-only files as
62 * VideoView2 can render videos on top of TextureView as well as
70 * VideoView2 covers and inherits the most of
73 * <li> VideoView2 inherits FrameLayout and renders videos using SurfaceView and TextureView
75 * <li> VideoView2 is integrated with MediaControlView2 and a default MediaControlView2 instance is
76 * attached to VideoView2 by default. If a developer does not want to use the default
79 * &lt;VideoView2
86 * <li> VideoView2 i
108 public class VideoView2 extends ViewGroupHelper<VideoView2Provider> { class in inherits:ViewGroupHelper
131 public VideoView2(@NonNull Context context) { method in class:VideoView2
135 public VideoView2(@NonNull Context context, @Nullable AttributeSet attrs) { method in class:VideoView2
139 public VideoView2(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { method in class:VideoView2
143 public VideoView2( method in class:VideoView2
[all...]
/frameworks/support/media-widget/src/androidTest/java/androidx/media/widget/
H A DVideoView2Test.java62 * Test {@link VideoView2}.
89 private VideoView2 mVideoView;
103 mVideoView = (VideoView2) mActivity.findViewById(R.id.videoview);
158 new VideoView2(mActivity);
159 new VideoView2(mActivity, null);
160 new VideoView2(mActivity, null, 0);
205 final VideoView2.OnViewTypeChangedListener mockViewTypeListener =
206 mock(VideoView2.OnViewTypeChangedListener.class);
225 .onViewTypeChanged(mVideoView, VideoView2.VIEW_TYPE_TEXTUREVIEW);
/frameworks/support/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/
H A DVideoViewTest.java42 import androidx.media.widget.VideoView2;
45 * Test application for VideoView2/MediaControlView2
86 mVideoView.setViewType(VideoView2.VIEW_TYPE_TEXTUREVIEW);
226 public static class MyVideoView extends VideoView2 {
279 if (mVideoView.getViewType() == VideoView2.VIEW_TYPE_SURFACEVIEW) {
280 mVideoView.setViewType(VideoView2.VIEW_TYPE_TEXTUREVIEW);
283 } else if (mVideoView.getViewType() == VideoView2.VIEW_TYPE_TEXTUREVIEW) {
284 mVideoView.setViewType(VideoView2.VIEW_TYPE_SURFACEVIEW);
290 private String getViewTypeString(VideoView2 videoView) {
295 if (type == VideoView2
[all...]
/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/
H A DVideoViewTest.java42 import androidx.media.widget.VideoView2;
45 * Test application for VideoView2/MediaControlView2
86 mVideoView.setViewType(VideoView2.VIEW_TYPE_TEXTUREVIEW);
226 public static class MyVideoView extends VideoView2 {
279 if (mVideoView.getViewType() == VideoView2.VIEW_TYPE_SURFACEVIEW) {
280 mVideoView.setViewType(VideoView2.VIEW_TYPE_TEXTUREVIEW);
283 } else if (mVideoView.getViewType() == VideoView2.VIEW_TYPE_TEXTUREVIEW) {
284 mVideoView.setViewType(VideoView2.VIEW_TYPE_SURFACEVIEW);
290 private String getViewTypeString(VideoView2 videoView) {
295 if (type == VideoView2
[all...]
/frameworks/av/packages/MediaComponents/src/com/android/widget/
H A DVideoView2Impl.java67 import android.widget.VideoView2;
88 private static final String TAG = "VideoView2";
92 private final VideoView2 mInstance;
115 private Pair<Executor, VideoView2.OnCustomActionListener> mCustomActionListenerRecord;
116 private VideoView2.OnViewTypeChangedListener mViewTypeChangedListener;
117 private VideoView2.OnFullScreenRequestListener mFullScreenRequestListener;
252 public VideoView2Impl(VideoView2 instance,
308 int viewType = (attrs == null) ? VideoView2.VIEW_TYPE_SURFACEVIEW
311 "viewType", VideoView2.VIEW_TYPE_SURFACEVIEW);
312 if (viewType == VideoView2
[all...]
H A DVideoSurfaceView.java29 import static android.widget.VideoView2.VIEW_TYPE_SURFACEVIEW;
H A DVideoTextureView.java30 import static android.widget.VideoView2.VIEW_TYPE_TEXTUREVIEW;
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
H A DVideoView2ImplBase.java83 * Base implementation of VideoView2.
112 private Pair<Executor, VideoView2.OnCustomActionListener> mCustomActionListenerRecord;
113 private VideoView2.OnViewTypeChangedListener mViewTypeChangedListener;
172 private VideoView2 mInstance;
253 VideoView2 instance, Context context,
305 int viewType = (attrs == null) ? VideoView2.VIEW_TYPE_SURFACEVIEW
308 "viewType", VideoView2.VIEW_TYPE_SURFACEVIEW);
309 if (viewType == VideoView2.VIEW_TYPE_SURFACEVIEW) {
314 } else if (viewType == VideoView2.VIEW_TYPE_TEXTUREVIEW) {
333 * @param intervalMs a time interval in milliseconds until VideoView2 hide
[all...]
H A DVideoSurfaceView.java19 import static androidx.media.widget.VideoView2.VIEW_TYPE_SURFACEVIEW;
H A DVideoTextureView.java19 import static androidx.media.widget.VideoView2.VIEW_TYPE_TEXTUREVIEW;
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
H A DVideoView2ImplBaseWithMp1.java78 * Base implementation of VideoView2.
108 private Pair<Executor, VideoView2.OnCustomActionListener> mCustomActionListenerRecord;
109 private VideoView2.OnViewTypeChangedListener mViewTypeChangedListener;
161 protected VideoView2 mInstance;
242 VideoView2 instance, Context context,
284 int viewType = (attrs == null) ? VideoView2.VIEW_TYPE_SURFACEVIEW
287 "viewType", VideoView2.VIEW_TYPE_SURFACEVIEW);
288 if (viewType == VideoView2.VIEW_TYPE_SURFACEVIEW) {
293 } else if (viewType == VideoView2.VIEW_TYPE_TEXTUREVIEW) {
312 * @param intervalMs a time interval in milliseconds until VideoView2 hide
[all...]
H A DVideoSurfaceViewWithMp1.java19 import static androidx.media.widget.VideoView2.VIEW_TYPE_SURFACEVIEW;
H A DVideoTextureViewWithMp1.java19 import static androidx.media.widget.VideoView2.VIEW_TYPE_TEXTUREVIEW;
H A DVideoView2ImplApi28WithMp1.java42 * Base implementation of VideoView2.
62 VideoView2 instance, Context context,
82 * Default behavior of VideoView2 is not showing subtitle.
/frameworks/av/packages/MediaComponents/src/com/android/media/update/
H A DApiFactory.java65 import android.widget.VideoView2;
192 VideoView2 instance, ViewGroupProvider superProvider, ViewGroupProvider privateProvider,

Completed in 2879 milliseconds