The PSDK provides the tools that you need for creating
your own advanced video player application, which you can integrate
with other Primetime components.
Follow
these instructions to create your own Primetime player:
Set up the MediaPlayer
The MediaPlayer interface for Android encapsulates the functionality and behavior of a media player.
Listen for Primetime Player events
Your player must listen for events (notifications) from the PSDK that indicate the state of the player or the completion of various actions.
Set up error handling
Set up a single place in your application in which to perform error handling in response to the ERROR state.
Configure the player user interface
With the PSDK, you can control the basic playback experience for live and video on demand (VOD). The PSDK does not configure the player for you; instead, it provides methods and properties on the player instance that you can use to configure the player user interface.
Initialize the MediaPlayer for a specific video
Each time that you play different video content, you must initialize a MediaResource instance with information about the video content, then load the media resource.
Monitor quality of service statistics
Quality of service (QoS) offers a detailed view into how the video engine is performing, without a lot of integration work.