Commit 85cf5768 by insun Committed by Oliver Woodman

Let CastPlayer#getTrackSelector return null

Change CastPlayer#getTrackSelector to return null
instead of throwing exception.

PiperOrigin-RevId: 310319964
parent c7f2df0f
......@@ -517,7 +517,7 @@ public final class CastPlayer extends BasePlayer {
@Override
@Nullable
public TrackSelector getTrackSelector() {
throw new UnsupportedOperationException();
return null;
}
@Override
......
......@@ -1190,7 +1190,9 @@ public interface Player {
*/
int getRendererType(int index);
/** Returns the track selector that this player uses. */
/**
* Returns the track selector that this player uses, or null if track selection is not supported.
*/
@Nullable
TrackSelector getTrackSelector();
......
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