mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove deprecated methods from SimpleExoPlayer
Remove SimpleExoPlayer methods: - setTextOutput - clearTextOutput - setMetadataOutput - clearMetadataOutput The methods were deprecated in r2.6.0. PiperOrigin-RevId: 351611289
This commit is contained in:
parent
9198dd6f5a
commit
b5a319dc4e
2 changed files with 14 additions and 50 deletions
|
|
@ -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 @@
|
||||||
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
|
||||||
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.
|
||||||
|
|
@ -1239,31 +1214,6 @@ public class SimpleExoPlayer extends BasePlayer
|
||||||
metadataOutputs.remove(listener);
|
metadataOutputs.remove(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue