/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/simple/ |
D | SimpleTvInputService.java | 57 private MediaPlayer mPlayer; field in SimpleTvInputService.SimpleSessionImpl 67 mPlayer.release(); in onRelease() 72 if (mPlayer != null) { in onSetSurface() 73 mPlayer.setSurface(surface); in onSetSurface() 81 if (mPlayer != null) { in onSetStreamVolume() 82 mPlayer.setVolume(volume, volume); in onSetStreamVolume() 120 if (mPlayer == null) { in startPlayback() 121 mPlayer = new MediaPlayer(); in startPlayback() 122 mPlayer.setOnInfoListener(new MediaPlayer.OnInfoListener() { in startPlayback() 140 mPlayer.setSurface(mSurface); in startPlayback() [all …]
|
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
D | SessionManager.java | 47 private Player mPlayer; field in SessionManager 70 return mPlayer.getStatistics(); in getStatistics() 86 mPlayer.updateStatistics(); in updateStatus() 91 } else if (mPlayer.isQueuingSupported()) { in updateStatus() 97 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */); in updateStatus() 102 mPlayer.getStatus(getCurrentItem(), true /* update */); in updateStatus() 125 if (mPlayer.isQueuingSupported()) { in add() 126 mPlayer.enqueue(item); in add() 153 mPlayer.seek(item); in seek() 164 if (mPlayer.isRemotePlayback()) { in getStatus() [all …]
|
D | MainActivity.java | 112 private Player mPlayer; field in MainActivity 136 mPlayer = Player.create(MainActivity.this, route); 137 mPlayer.updatePresentation(); 138 mSessionManager.setPlayer(mPlayer); 156 mPlayer.updatePresentation(); 157 mPlayer.release(); 168 mPlayer.updatePresentation(); 205 mPlayer = (Player) savedInstanceState.getSerializable("mPlayer"); in onCreate() 375 mPlayer = Player.create(MainActivity.this, mMediaRouter.getSelectedRoute()); in onCreate() 376 mSessionManager.setPlayer(mPlayer); in onCreate() [all …]
|
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
D | SessionManager.java | 47 private Player mPlayer; field in SessionManager 70 return mPlayer.getStatistics(); in getStatistics() 86 mPlayer.updateStatistics(); in updateStatus() 91 } else if (mPlayer.isQueuingSupported()) { in updateStatus() 97 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */); in updateStatus() 102 mPlayer.getStatus(getCurrentItem(), true /* update */); in updateStatus() 125 if (mPlayer.isQueuingSupported()) { in add() 126 mPlayer.enqueue(item); in add() 153 mPlayer.seek(item); in seek() 164 if (mPlayer.isRemotePlayback()) { in getStatus() [all …]
|
D | MainActivity.java | 112 private Player mPlayer; field in MainActivity 136 mPlayer = Player.create(MainActivity.this, route); 137 mPlayer.updatePresentation(); 138 mSessionManager.setPlayer(mPlayer); 156 mPlayer.updatePresentation(); 157 mPlayer.release(); 168 mPlayer.updatePresentation(); 205 mPlayer = (Player) savedInstanceState.getSerializable("mPlayer"); in onCreate() 375 mPlayer = Player.create(MainActivity.this, mMediaRouter.getSelectedRoute()); in onCreate() 376 mSessionManager.setPlayer(mPlayer); in onCreate() [all …]
|
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/ |
D | RichTvInputService.java | 121 protected TvInputPlayer mPlayer; field in RichTvInputService.RichTvInputSessionImpl 140 Collections.addAll(tracks, mPlayer.getTracks(TvTrackInfo.TYPE_AUDIO)); 141 Collections.addAll(tracks, mPlayer.getTracks(TvTrackInfo.TYPE_VIDEO)); 142 Collections.addAll(tracks, mPlayer.getTracks(TvTrackInfo.TYPE_SUBTITLE)); 145 notifyTrackSelected(TvTrackInfo.TYPE_AUDIO, mPlayer.getSelectedTrack( 147 notifyTrackSelected(TvTrackInfo.TYPE_VIDEO, mPlayer.getSelectedTrack( 149 notifyTrackSelected(TvTrackInfo.TYPE_SUBTITLE, mPlayer.getSelectedTrack( 243 if (mPlayer != null) { in onSetSurface() 244 mPlayer.setSurface(surface); in onSetSurface() 252 if (mPlayer != null) { in onSetStreamVolume() [all …]
|
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/ |
D | TvInputPlayer.java | 100 private final ExoPlayer mPlayer; field in TvInputPlayer 153 mPlayer = ExoPlayer.Factory.newInstance(RENDERER_COUNT, MIN_BUFFER_MS, MIN_REBUFFER_MS); in TvInputPlayer() 154 mPlayer.addListener(new ExoPlayer.Listener() { in TvInputPlayer() 375 mPlayer.setRendererEnabled(trackType, false); in selectTrack() 379 mPlayer.setRendererEnabled(trackType, true); in selectTrack() 381 boolean playWhenReady = mPlayer.getPlayWhenReady(); in selectTrack() 382 mPlayer.setPlayWhenReady(false); in selectTrack() 383 mPlayer.setRendererEnabled(trackType, false); in selectTrack() 384 mPlayer.sendMessage(mMultiTrackSources[trackType], in selectTrack() 386 mPlayer.setRendererEnabled(trackType, true); in selectTrack() [all …]
|
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/provider/ |
D | SampleMediaRouteProvider.java | 229 private final Player mPlayer; field in SampleMediaRouteProvider.SampleRouteController 234 mPlayer = Player.create(getContext(), null); in SampleRouteController() 235 mSessionManager.setPlayer(mPlayer); in SampleRouteController() 252 mPlayer.release(); in onRelease() 258 mPlayer.connect(null); in onSelect() 264 mPlayer.release(); in onUnselect()
|
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/provider/ |
D | SampleMediaRouteProvider.java | 229 private final Player mPlayer; field in SampleMediaRouteProvider.SampleRouteController 234 mPlayer = Player.create(getContext(), null); in SampleRouteController() 235 mSessionManager.setPlayer(mPlayer); in SampleRouteController() 252 mPlayer.release(); in onRelease() 258 mPlayer.connect(null); in onSelect() 264 mPlayer.release(); in onUnselect()
|