Skip to content

Commit

Permalink
Merge pull request #1040 from react-native-community/chore/remove-met…
Browse files Browse the repository at this point in the history
…adata-code

Remove obsolete metadata code that shouldn't have been included
  • Loading branch information
cobarx authored May 29, 2018
2 parents 7f011ab + c8d4444 commit f0de6bb
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import com.google.android.exoplayer2.PlaybackParameters;
import com.google.android.exoplayer2.SimpleExoPlayer;
import com.google.android.exoplayer2.Timeline;
import com.google.android.exoplayer2.metadata.Metadata;
import com.google.android.exoplayer2.metadata.MetadataRenderer;
import com.google.android.exoplayer2.source.TrackGroupArray;
import com.google.android.exoplayer2.text.Cue;
import com.google.android.exoplayer2.text.TextRenderer;
Expand Down Expand Up @@ -101,7 +99,6 @@ public void setPlayer(SimpleExoPlayer player) {
this.player.setVideoListener(null);
this.player.removeListener(componentListener);
this.player.setVideoSurface(null);
this.player.setMetadataOutput(componentListener);
}
this.player = player;
shutterView.setVisibility(VISIBLE);
Expand All @@ -114,7 +111,6 @@ public void setPlayer(SimpleExoPlayer player) {
player.setVideoListener(componentListener);
player.addListener(componentListener);
player.setTextOutput(componentListener);
player.setMetadataOutput(componentListener);
}
}

Expand Down Expand Up @@ -168,7 +164,7 @@ private void updateForCurrentTrackSelections() {
}

private final class ComponentListener implements SimpleExoPlayer.VideoListener,
TextRenderer.Output, ExoPlayer.EventListener, MetadataRenderer.Output {
TextRenderer.Output, ExoPlayer.EventListener {

// TextRenderer.Output implementation

Expand Down Expand Up @@ -232,11 +228,6 @@ public void onPlaybackParametersChanged(PlaybackParameters params) {
// Do nothing
}

@Override
public void onMetadata(Metadata metadata) {
Log.d("onMetadata", "onMetadata");
}

@Override
public void onSeekProcessed() {
// Do nothing.
Expand Down

0 comments on commit f0de6bb

Please sign in to comment.