aws-sdk-ios icon indicating copy to clipboard operation
aws-sdk-ios copied to clipboard

Sample Request: getMediaForFragmentList API sample with AVPlayer

Open suggestedfixes opened this issue 3 years ago • 0 comments

Which AWS Services is the feature request for? Amazon Kinesis Video Streams

Is your feature request related to a problem? Please describe. The problem we are solving is trying to stream a subset of video fragments. It seems as though getMediaForFragmentList is a perfect candidate for this purpose. We had tiny roadblocks trying different request formats for getMediaForFragmentList and are struggling to get the output to play.

Describe the solution you'd like

  1. List fragments by time range given a video stream name.
  2. Pass on the parameters needed to obtain media from getMediaForFragmentList.
  3. Once we have a response, pass on the payload that is needed to AVPlayer.

Describe alternatives you've considered Another alternative we are in the process of research, but we are not sure if doing so will create issues.

  1. Use getHLSStreamingSessionURL API.
  2. Attempt to init AVPlayer with the URL and extract a list of AVPlayerItems from AVPlayer.
  3. Copy the useful subset of AVPlayerItems into a new list.
  4. Reinit Video AVQueuePlayer with the new list of AVPlayerItems.

suggestedfixes avatar Dec 07 '21 16:12 suggestedfixes