Commit b5a319dc by christosts Committed by Ian Baker

Remove deprecated methods from SimpleExoPlayer

Remove SimpleExoPlayer methods:
- setTextOutput
- clearTextOutput
- setMetadataOutput
- clearMetadataOutput

The methods were deprecated in r2.6.0.

PiperOrigin-RevId: 351611289
parent 9198dd6f
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
`PlayerView.setDefaultArtwork(Drawable)` instead. `PlayerView.setDefaultArtwork(Drawable)` instead.
* `PlayerView.setShowBuffering(boolean)`. Use * `PlayerView.setShowBuffering(boolean)`. Use
`PlayerView.setShowBuffering(int)` instead. `PlayerView.setShowBuffering(int)` instead.
* `SimpleExoPlayer.clearMetadataOutput(MetadataOutput)`. Use
`SimpleExoPlayer.removeMetadataOutput(MetadataOutput)` instead.
* `SimpleExoPlayer.clearTextOutput(TextOutput)`. Use
`SimpleExoPlayer.removeTextOutput(TextOutput)` instead.
* `SimpleExoPlayer.clearVideoListener()`. Use * `SimpleExoPlayer.clearVideoListener()`. Use
`SimpleExoPlayer.removeVideoListener(VideoListener)` instead. `SimpleExoPlayer.removeVideoListener(VideoListener)` instead.
* `SimpleExoPlayer.getAudioStreamType()`. Use * `SimpleExoPlayer.getAudioStreamType()`. Use
...@@ -31,8 +35,18 @@ ...@@ -31,8 +35,18 @@
instead. instead.
* `SimpleExoPlayer.setAudioStreamType(int)`. Use * `SimpleExoPlayer.setAudioStreamType(int)`. Use
`SimpleExoPlayer.setAudioAttributes(AudioAttributes)` instead. `SimpleExoPlayer.setAudioAttributes(AudioAttributes)` instead.
* `SimpleExoPlayer.setMetadataOutput(MetadataOutput)`. Use
`SimpleExoPlayer.addMetadataOutput(MetadataOutput)` instead. If your
application is calling `SimpleExoPlayer.setMetadataOutput(null)`,
make sure to replace this call with
`SimpleExoPlayer.removeMetadataOutput(MetadataOutput)`.
* `SimpleExoPlayer.setPlaybackParams(PlaybackParams)`. Use * `SimpleExoPlayer.setPlaybackParams(PlaybackParams)`. Use
`SimpleExoPlayer.setPlaybackParameters(PlaybackParameters)` instead. `SimpleExoPlayer.setPlaybackParameters(PlaybackParameters)` instead.
* `SimpleExoPlayer.setTextOutput(TextOutput)`. Use
`SimpleExoPlayer.addTextOutput(TextOutput)` instead. If your
application is calling `SimpleExoPlayer.setTextOutput(null)`, make
sure to replace this call with
`SimpleExoPlayer.removeTextOutput(TextOutput)`.
* `SimpleExoPlayer.setVideoDebugListener(VideoRendererEventListener)`. * `SimpleExoPlayer.setVideoDebugListener(VideoRendererEventListener)`.
Use `SimpleExoPlayer.addAnalyticsListener(AnalyticsListener)` Use `SimpleExoPlayer.addAnalyticsListener(AnalyticsListener)`
instead. instead.
......
...@@ -1201,31 +1201,6 @@ public class SimpleExoPlayer extends BasePlayer ...@@ -1201,31 +1201,6 @@ public class SimpleExoPlayer extends BasePlayer
return currentCues; return currentCues;
} }
/**
* Sets an output to receive text events, removing all existing outputs.
*
* @param output The output.
* @deprecated Use {@link #addTextOutput(TextOutput)}.
*/
@Deprecated
public void setTextOutput(TextOutput output) {
textOutputs.clear();
if (output != null) {
addTextOutput(output);
}
}
/**
* Equivalent to {@link #removeTextOutput(TextOutput)}.
*
* @param output The output to clear.
* @deprecated Use {@link #removeTextOutput(TextOutput)}.
*/
@Deprecated
public void clearTextOutput(TextOutput output) {
removeTextOutput(output);
}
@Override @Override
public void addMetadataOutput(MetadataOutput listener) { public void addMetadataOutput(MetadataOutput listener) {
// Don't verify application thread. We allow calls to this method from any thread. // Don't verify application thread. We allow calls to this method from any thread.
...@@ -1240,31 +1215,6 @@ public class SimpleExoPlayer extends BasePlayer ...@@ -1240,31 +1215,6 @@ public class SimpleExoPlayer extends BasePlayer
} }
/** /**
* Sets an output to receive metadata events, removing all existing outputs.
*
* @param output The output.
* @deprecated Use {@link #addMetadataOutput(MetadataOutput)}.
*/
@Deprecated
public void setMetadataOutput(MetadataOutput output) {
metadataOutputs.retainAll(Collections.singleton(analyticsCollector));
if (output != null) {
addMetadataOutput(output);
}
}
/**
* Equivalent to {@link #removeMetadataOutput(MetadataOutput)}.
*
* @param output The output to clear.
* @deprecated Use {@link #removeMetadataOutput(MetadataOutput)}.
*/
@Deprecated
public void clearMetadataOutput(MetadataOutput output) {
removeMetadataOutput(output);
}
/**
* @deprecated Use {@link #addAnalyticsListener(AnalyticsListener)} to get more detailed debug * @deprecated Use {@link #addAnalyticsListener(AnalyticsListener)} to get more detailed debug
* information. * information.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment