Search code examples
azureazure-media-services

How to play manifest file/build url for Azure Media Services v3?


Using v3 of Azure Media Services. My streaming endpoint is running. I want users to upload any type of video file(.avi for example) through the browser and play them without a plugin. I understand that requires background encoding.

I've uploaded an asset, created an encoding job for it and set up a webhook to notify me when its done. I then create a streaming locator for it and store the smooth streaming path.

It ends up looking like: https://{StreamingEndpoint}/{StreamingLocator}/{filename}.ism/manifest

I can download the manifest file so the url seems correct but I've tried the video in https://ampdemo.azureedge.net/azuremediaplayer.html?url=%2F%2F and my own site without success.

Can anyone tell me what I'm missing?


Solution

  • After some searching, It was a combination of me not understanding the manifest file/my video having no audio that caused the problem.

    For the manifest, I was using the smooth streaming link instead of the dash link when playing in Chrome. I've swapped to Azure Media Player from video.js for auto swapping DASH/HLS/SmoothStreaming because I didn't want to handle that myself.

    I also came up against the video not playing without audio which I fixed by switching encoding.

    Thanks to @johndeu for the help.