I want to encode the audio file (mp3, mp4, m4a, ogg) for the streaming and want to play (I want to play encoded file smoothly) using the HTML5 player but I think HTML5 player. So now what I am doing, I am uplaoding a file and econding this file on windows Azure Media Services using the preset "AAC Good Quality Audio". It encode the file with .mp4 file format and then I create SAS locator to run this file, it works well but the problem is that user can download it too which I don't want to allow.
If I create the OnDemandOrigin locator of the same encoded asset, it gives me 404 erroe. It means we can not play it.
Below are the steps that I have used to upload the file on Azure Media Services:
- Created the empty assest.
- Upload the file into the asset.
- Then create the new task job to encode the audio file.
- I have successfully encoded the file but when I try to generate the origin url it generate the url but when I browse the file I get the error 404.
My queries:
- "AAC Good Quality Audio" preset is the right for my task?
- How can I restrict the user to download the file, if I use sas locator.
- Is it possible to play the encoded file using origin locator.
- Can I encode audio files for smooth streaming ? If I can then which player I should use to run the encoded file for all browsers, IOS devices and android devices.
If you want further details please feel free to ask me.
Awaiting your response.
Thanks