onPlayerStateChanged
Callback for playback state changes.
void onPlayerStateChanged(Constants.MediaPlayerState state, Constants.MediaPlayerReason reason);
This callback is triggered by the SDK when the media player's state changes.
Parameters
- state
- Playback state. See MediaPlayerState.
- reason
- Reason for the playback state change. See MediaPlayerReason.