Home
last modified time | relevance | path

Searched refs:mSubtitleController (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
DVideoView2ImplApi28WithMp1.java52 private SubtitleController mSubtitleController; field in VideoView2ImplApi28WithMp1
115 mSubtitleController = new SubtitleController(context); in setupMediaPlayer()
116 mSubtitleController.registerRenderer(new ClosedCaptionRenderer(context)); in setupMediaPlayer()
117 mSubtitleController.setAnchor((SubtitleController.Anchor) mSubtitleView); in setupMediaPlayer()
129 mSubtitleController.selectTrack(mSubtitleTrackIndices.get(0).second); in selectOrDeselectSubtitle()
148 mSubtitleController.reset(); in extractTracks()
156 SubtitleTrack track = mSubtitleController.addTrack(trackInfos[i].getFormat()); in extractTracks()
/frameworks/base/media/java/android/media/
DMediaPlayer2Impl.java1707 if (mSubtitleController != null) { in reset()
1708 mSubtitleController.reset(); in reset()
2099 private SubtitleController mSubtitleController; field in MediaPlayer2Impl
2107 mSubtitleController = controller; in setSubtitleAnchor()
2108 mSubtitleController.setAnchor(anchor); in setSubtitleAnchor()
2117 if ((mSubtitleController == null) && (ActivityThread.currentApplication() != null)) { in setSubtitleAnchor()
2125mSubtitleController = new SubtitleController(context, mTimeProvider, MediaPlayer2Impl.this); in setSubtitleAnchor()
2126 mSubtitleController.setAnchor(new Anchor() { in setSubtitleAnchor()
2229 if (fIs == null || mSubtitleController == null) { in addSubtitleSource()
2233 SubtitleTrack track = mSubtitleController.addTrack(fFormat); in addSubtitleSource()
[all …]
DMediaPlayer.java2169 if (mSubtitleController != null) { in reset()
2170 mSubtitleController.reset(); in reset()
2660 private SubtitleController mSubtitleController; field in MediaPlayer
2667 mSubtitleController = controller; in setSubtitleAnchor()
2668 mSubtitleController.setAnchor(anchor); in setSubtitleAnchor()
2677 if ((mSubtitleController == null) && (ActivityThread.currentApplication() != null)) { in setSubtitleAnchor()
2685mSubtitleController = new SubtitleController(context, mTimeProvider, MediaPlayer.this); in setSubtitleAnchor()
2686 mSubtitleController.setAnchor(new Anchor() { in setSubtitleAnchor()
2792 if (fIs == null || mSubtitleController == null) { in addSubtitleSource()
2796 SubtitleTrack track = mSubtitleController.addTrack(fFormat); in addSubtitleSource()
[all …]
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
DVideoView2ImplBase.java158 private SubtitleController mSubtitleController; field in VideoView2ImplBase
914 mSubtitleController = new SubtitleController(context); in openVideo()
915 mSubtitleController.registerRenderer(new ClosedCaptionRenderer(context)); in openVideo()
916 mSubtitleController.setAnchor((SubtitleController.Anchor) mSubtitleView); in openVideo()
1107 mSubtitleController.selectTrack(mSubtitleTrackIndices.get(0).second); in selectOrDeselectSubtitle()
1125 mSubtitleController.reset(); in extractTracks()
1133 SubtitleTrack track = mSubtitleController.addTrack(trackInfos.get(i).getFormat()); in extractTracks()
/frameworks/av/packages/MediaComponents/src/com/android/widget/
DVideoView2Impl.java161 private SubtitleController mSubtitleController; field in VideoView2Impl
726 mSubtitleController = new SubtitleController(context); in openVideo()
727 mSubtitleController.registerRenderer(new ClosedCaptionRenderer(context)); in openVideo()
728 mSubtitleController.setAnchor((SubtitleController.Anchor) mSubtitleView); in openVideo()
950 mSubtitleController.selectTrack(mSubtitleTrackIndices.get(0).second); in selectOrDeselectSubtitle()
968 mSubtitleController.reset(); in extractTracks()
977 SubtitleTrack track = mSubtitleController.addTrack(trackInfos.get(i).getFormat()); in extractTracks()