how to generate the mp4 extension url for video hosted in Azure Media Services

Vinayak Nikam 51 Reputation points
2021-02-23T13:45:29.177+00:00

I want to play video hosted to Azure Media Services in Xamarin.Forms (iOS/ Android) application using MediaElement.

For e.g.
<MediaElement Source="https://sec.ch9.ms/ch9/5d93/a1eab4bf-3288-4faf-81c4-294402a85d93/XamarinShow_mid.mp4"
ShowsPlaybackControls="True" />

Can anyone help by summarising steps to follow to get .mp4 url from Azure media services video?

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
0 comments No comments
{count} vote

Accepted answer
  1. John Deutscher (MSFT) 2,126 Reputation points
    2021-02-23T18:35:12.73+00:00

    Hi, there are lots of examples of how to encode and get a streaming URL - for example look at the .NET samples here
    https://github.com/Azure-Samples/media-services-v3-dotnet

    But there is a difference between just progressive downloading an .MP4 file vs. streaming using DASH or HLS protocols. Which is it that you are interested in exactly?

    You might want to check this example video showing how to use WebView with HLS for streaming.
    https://azure.microsoft.com/en-us/resources/videos/media-streaming-apps-with-azure-and-xamarin/

    Also check out this stack thread showing how to use the AvPlayer with AMS manifests for HLS in Xamarin
    https://stackoverflow.com/questions/44146616/how-to-play-ism-manifest-file

    Make sure to use the v3 API and examples above though to get the content streams.


0 additional answers

Sort by: Most helpful