简体   繁体   中英

Azure Media Services - Captions on iOS - Native not AMP

I'm trying to get captioning working on iOS and Android. Android seems relatively straight forward but I can't seem to figure out how (nor do the docs really tell you) to setup WebVTT captions like you can easily do with Windows 10 UWP and AMP.

On Android I am just doing videoView.AddSubtitleSource and it appears to work. On iOS I'm at a loss. From what I can tell it appears that it's possible to load captions not embedded in the file, but I can't find any example of how it works with MediaSelectionOptions and specifying a stream or similar.

I've done this in my own custom renderer in Xamarin Forms but I'm fine converting it from swift or Objective C if needed.

Anyone get this working or know how?

If your interest is iOS native player, check this tutorial video from Apple: https://developer.apple.com/videos/play/wwdc2012/512/ (about 20 min into it)

If your interest is Safari based player, check the examples here: https://developer.apple.com/streaming/examples/ (3 of the examples include webVTT)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM