Java 类com.google.android.exoplayer.util.DebugTextViewHelper 实例源码

项目:Android-Example-HLS-ExoPlayer    文件:PlayerActivity.java   
private void preparePlayer(boolean playWhenReady) {
    if (player == null) {
        player = new DemoPlayer(getRendererBuilder());
        player.addListener(this);
        player.setCaptionListener(this);
        player.setMetadataListener(this);
        player.seekTo(playerPosition);
        playerNeedsPrepare = true;
        mediaController.setMediaPlayer(player.getPlayerControl());
        mediaController.setEnabled(true);
        eventLogger = new EventLogger();
        eventLogger.startSession();
        player.addListener(eventLogger);
        player.setInfoListener(eventLogger);
        player.setInternalErrorListener(eventLogger);
        debugViewHelper = new DebugTextViewHelper(player, debugTextView);
        debugViewHelper.start();
    }
    if (playerNeedsPrepare) {
        player.prepare();
        playerNeedsPrepare = false;
        updateButtonVisibilities();
    }
    player.setSurface(surfaceView.getHolder().getSurface());
    player.setPlayWhenReady(playWhenReady);
}
项目:sbs-android-tv    文件:VideoPlayerView.java   
public void startDebugView(VideoPlayer player) {
    debugViewHelper = new DebugTextViewHelper(player, debugTextView);
    debugViewHelper.start();
}
项目:iview-android-tv    文件:VideoPlayerView.java   
public void startDebugView(VideoPlayer player) {
    debugViewHelper = new DebugTextViewHelper(player, debugTextView);
    debugViewHelper.start();
}