MediaPlayer and MediaResource classes

Last update: 2023-10-02

A MediaResource represents the content that is about to be loaded by the MediaPlayer instance.

TVSDK provides the means to load and prepare content for playback by using the replaceCurrentResource method in MediaPlayer. This method takes two arguments, an instance of MediaPlayerResource and, optionally, an instance of MediaPlayerItemConfig, which you can use to pass application-defined custom parameters.

  • For more details see mediaplayer-reuse-or-remove .
  • For details of MediaPlayerResource, see media-resource-create

On this page