Let CastPlayer#getTrackSelector return null

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

PiperOrigin-RevId: 310319964
This commit is contained in:
insun 2020-05-07 10:29:39 +01:00 committed by Oliver Woodman
parent c7f2df0fd9
commit 85cf5768eb
2 changed files with 4 additions and 2 deletions

View file

@ -517,7 +517,7 @@ public final class CastPlayer extends BasePlayer {
@Override
@Nullable
public TrackSelector getTrackSelector() {
throw new UnsupportedOperationException();
return null;
}
@Override

View file

@ -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();