Facing issues while overriding the bif file into the AVPlayer in the Xamarin tvOS app.

Anonymous
2022-01-14T14:56:03.837+00:00

I have a Xamarin tvOS app streaming the HLS streams using the AVPlayer in Apple TV.

I'm able to parse the BIF file and retrieve the thumbnail images from the file and have also implemented the way to retrieve the images from the file based on player target time. I tried incorporating those thumbnail images into the AVPlayer to display while seek forward and seek rewind but I'm unable to override the AVPlayerStandard playback controls.
In Apple TV I'm using the standard playback controls provided by the player itself and player itself handles the thumbnail preview if the thumbnail information is available in the manifest file (getting in m3u8 URL) and does not have external interface to enable the preview explicitly.
I tried adding the external image view on the AVPlayerViewController to display the thumbnails but I'm unable to do so as well.
Also, in the AVPlayer documentation it is mentioned that AVPlayerViewController should not be overridden.

Can anyone please help me to resolve this issue.

Thanks in advance.

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2022-01-17T08:04:58.987+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    The AVPlayerViewController provides a simple way of displaying a player with some standard controls. If you want to display the thumbnails, you have to Customize the tvOS Playback Experience.

    You could try using AVPlayerLayer and creating an array whose item type is AVMutableMetadataItem and whose value is the image . Then set this array to playerItem.ExternalMetadata.

    Pay attention to AVMutableMetadataItem , the value of AVMetadataItem is read-only.

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.