Skip to content

Commit

Permalink
Player: more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed May 25, 2024
1 parent 4f9f485 commit 0842b8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/archos/mediacenter/video/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,7 @@ private void handleMetadata(IMediaPlayer mp) {
int currentAudio = -1;
if (data.has(IMediaPlayer.METADATA_KEY_CURRENT_AUDIO_TRACK))
currentAudio = data.getInt(IMediaPlayer.METADATA_KEY_CURRENT_AUDIO_TRACK);
log.debug("handleMetadata: currentAudioTrack -1 -> " + currentAudio + ", calling onAudioMetadataUpdated");
mPlayerListener.onAudioMetadataUpdated(mVideoMetadata, currentAudio);
}
if (data.has(IMediaPlayer.METADATA_KEY_NB_SUBTITLE_TRACK)) {
Expand Down Expand Up @@ -1301,6 +1302,7 @@ public void onBufferingUpdate(IMediaPlayer mp, int percent) {
}

public void onSubtitle(IMediaPlayer mp, Subtitle subtitle) {
log.debug("onSubtitle: " + subtitle);
if (mPlayerListener != null) {
mPlayerListener.onSubtitle(subtitle);
}
Expand Down

0 comments on commit 0842b8b

Please sign in to comment.