Events Playback

Pre-requisite: The user has to be signed in to perform the following operations.

Events video urls are in m3u8 format which can be streamed over via IJKMediaPlayer.


Generating an Event Playback Url.

The video URL in the event object may or may not contain an Authorization query param. If the Url contains the query params you are to replace it.

  • Start by fetching the Event Tokens
  • For the event that you need to play replace the Autorization in the video url with the token after matching the bucket names
  • The Newly constructed url can be played using IJKFFMoviePlayerController.
  • You will also need to use IJKFFOptions to pass authentication to IJKMediaPlayer.

For Example: If the video url in the event is https://www.example.com/video.m3u8 and the event entity has the bucket name 180-days then we need to look the tokens and look for the bucket named 180-days this object will give us the authentication token so the newly formed url would be https://www.example.cpm/video.m3u8?Authorization=123123123123123