Last active
March 22, 2018 18:17
-
-
Save mkaflowski/2b72cf4feb5455692e9f06858dd8950d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final CastPlayer castPlayer = new CastPlayer(castContext); | |
castPlayer.setSessionAvailabilityListener(new CastPlayer.SessionAvailabilityListener() { | |
@Override | |
public void onCastSessionAvailable() { | |
castPlayer.loadItems(mediaItems, 0, time, Player.REPEAT_MODE_OFF); | |
} | |
@Override | |
public void onCastSessionUnavailable() { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment