WebVTT Subtitles/Captions in a HLS stream for iOS iPhone AVPlayer full screen configuration

James Lodge 21 Reputation points
2021-01-25T21:00:20.087+00:00

Hi All,

I have a quesiton around Subtitles and Captions using webVTT. I have no problem getting VTT to work with the Azure Media Player in the browser, but how do you get it to work via a hls stream to an iPhone that use AVPlayer in full screen. I assume it has to be present in the m3u8 manifest, but how do you do that dynamically?

James

Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
302 questions
{count} votes

6 answers

Sort by: Most helpful
  1. John Deutscher (MSFT) 2,126 Reputation points
    2021-04-26T16:56:25.697+00:00

    Yes, we have an open issue tracking this and hope to have a fix in the future. We will update the thread when it is available.

    2 people found this answer helpful.

  2. Grmacjon-MSFT 15,851 Reputation points
    2021-01-26T21:01:00.307+00:00

    Hi @James Lodge ,

    You could "add "(format=m3u8-aapl)" path to the "/Manifest" portion of the URL to tell the streaming origin server to return back HLS content for consumption on Apple iOS native devices (for details, see locators and URLs)"

    Please read this documentation for more details. Let us know if you have further questions


  3. John Deutscher (MSFT) 2,126 Reputation points
    2021-01-27T18:45:30.487+00:00

    Hi James, there may be a regression on iOS 14 that is causing this issue.
    Normally we recommend side-car loading the Web VTT file in the player. I believe on iOS this is supported in the AVPlayer, as well as in Safari using the HTML5 video tag.

    But we have seen reports that on IOS 14 the side loaded captions file is not showing. Is that what you are currently seeing?
    The team has filed a bug with Apple on this, as it was working previously in IOS13.

    AMS does not currently support embedding the WebVTT into the HLS manifest directly (merging) from the side car file during dynamic packaging, and that may be what the iOS14 player is looking for. We are investigating.


  4. James Lodge 21 Reputation points
    2021-02-10T17:18:24.83+00:00

    Thanks for the reply guys. Let me test and come back to you.

    0 comments No comments

  5. James Lodge 21 Reputation points
    2021-03-03T14:28:09.563+00:00

    Hi @John Deutscher (MSFT)

    var myOptions = {
    plugins: {
    appInsights: {
    //add additonal plugin options here
    'debug': true
    }},
    };

    var myPlayer = amp("azuremediaplayer", myOptions);
    myPlayer.src([{ src: '//.....vnd.ms-sstr+xml" }] ,[{"src":"//......vtt","srclang": "en","label": "ENGLISH","kind": "captions"}]);

    Right now all you get is

    ![73818-image.png]1

    0 comments No comments