Using PSDK methods, you can set up pause and play buttons for the user.
This ensures that the media resource has successfully loaded. If the player is not in the PREPARED state, attempting to call the following methods throws an IllegalStateException.
To start playback.
void play() throws IllegalStateException;
To pause playback.
void pause() throws IllegalStateException;
The PSDK calls this callback when the pause or play methods are called. The PSDK passes information about the state change in the callback, including the new state, such as PAUSED or PLAYING.