mirror of
https://github.com/samsonjs/media.git
synced 2026-04-21 13:55:47 +00:00
Let CastPlayer#getTrackSelector return null
Change CastPlayer#getTrackSelector to return null instead of throwing exception. PiperOrigin-RevId: 310319964
This commit is contained in:
parent
c7f2df0fd9
commit
85cf5768eb
2 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue