brminnick / azuremediaservicessampleapp Goto Github PK
View Code? Open in Web Editor NEWAn iOS and Android app made in Xamarin.Forms that integrates with Azure Media Services
License: MIT License
An iOS and Android app made in Xamarin.Forms that integrates with Azure Media Services
License: MIT License
When watching the Encrypted Video Source on a physical Android Device the video won't load.
After specifying the MediaType as suggested here: Baseflow/XamarinMediaManager#450 you run into the problem that HLS doesn't support bearer tokens in the header.
This is something you can work around by using a HLS proxy as described here: http://mingfeiy.azurewebsites.net.
However; I am still left with the following stacktrace after successfully obtaining the manifest:
[ExoPlayerImplInternal] Source error.
[ExoPlayerImplInternal] com.google.android.exoplayer2.source.hls.SampleQueueMappingException: Unable to bind a sample queue to TrackGroup with mime type audio/mp4a-latm.
[ExoPlayerImplInternal] at com.google.android.exoplayer2.source.hls.HlsSampleStream.maybeThrowError(HlsSampleStream.java:64)
[ExoPlayerImplInternal] at com.google.android.exoplayer2.BaseRenderer.maybeThrowStreamError(BaseRenderer.java:129)
[ExoPlayerImplInternal] at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:538)
[ExoPlayerImplInternal] at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:300)
[ExoPlayerImplInternal] at android.os.Handler.dispatchMessage(Handler.java:98)
[ExoPlayerImplInternal] at android.os.Looper.loop(Looper.java:154)
[ExoPlayerImplInternal] at android.os.HandlerThread.run(HandlerThread.java:61)
public const string EncryptedVideoUrl = @"http://mingfeiy.azurewebsites.net/Home/Manifest?playbackUrl=http%3a%2f%2famssamples.streaming.mediaservices.windows.net%2f830584f8-f0c8-4e41-968b-6538b9380aa5%2fTearsOfSteelTeaser.ism%2fmanifest(format%3dm3u8-aapl)&webtoken=Bearer%3deyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cm46bWljcm9zb2Z0OmF6dXJlOm1lZGlhc2VydmljZXM6Y29udGVudGtleWlkZW50aWZpZXIiOiI5ZGRhMGJjYy01NmZiLTQxNDMtOWQzMi0zYWI5Y2M2ZWE4MGIiLCJpc3MiOiJodHRwOi8vdGVzdGFjcy5jb20vIiwiYXVkIjoidXJuOnRlc3QiLCJleHAiOjE3MTA4MDczODl9.lJXm5hmkp5ArRIAHqVJGefW2bcTzd91iZphoKDwa6w8";
I've been following: https://github.com/Azure-Samples/media-services-v3-dotnet-tutorials to create an AES encrypted resource. I've then used the token it gives me and try to load the video with the HLS endpoint (format=m3u8-aapl) and it doesn't work.
I'm sure I'm missing something so I'm hoping that you could give me a quick rundown on creating the encrypted video that you're using in your sample.
Thanks!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.