How can I get the authenticationToken for azure media player?
I tried but it's not working
See the following basic Streaming with DRM example for Typescript/Javascript SDK
https://github.com/Azure-Samples/media-services-v3-node-tutorials/blob/main/Streaming/StreamFilesWithDRMSample/index.ts
https://github.com/Azure-Samples/media-services-v3-node-tutorials/blob/main/Streaming/StreamFileWithAESClearKey/index.ts
Related
I am looking for integrating Media Service from azure to Xamarin Android for live broadcasting and viewing the live with on demand videos. For example I need to implement the live video broadcasting like a Facebook app using Azure Media Services and also view the live and archived videos from blob storage. I am unable to get the resource to implement that from official documents of Azure and Xamarin and through the Xamarin University.
So I am here to learn this which will be useful to almost every one willing to implement this kind of features in feature.
There is a official video showing the upload of a video recorded using xamarin application to Azure Media Service and viewing back on the Xamarin app the link is as follows, but there is no approach for making a live broadcasting possible through the same.
https://azure.microsoft.com/en-us/resources/videos/media-streaming-apps-with-azure-and-xamarin/
Xamarin.Android is not compulsory like it may be from Xamarin Forms also the thing is like we just need the android part, I will be happily looking forward to take any kind of help you can offer to get this working.
Scope of App Requirement/Workflow::
1) App should be able to broad cast live (like going live on Facebook application)
2) That should be capable to view the live broadcasts (like we can stream the live content in Facebook application)
3) That should be able to view the archived videos in blob storage (I know how to access the blob storage and download the video to view it on mobile but I don’t know the process to stream the video while it is being downloaded in the background like it does in Youtube or Facebook application).
Using Xamarin.Android and Media Service in Azure for live broadcasting
You could refer to the xamarin-azure-businessreview sample.
Demo app showing how to use several Azure services with Xamarin including Azure AD B2C, Azure Cosmos DB, Azure Functions, Azure App Services, and Azure Media Services
We're planning to build a Xamarin app, where you can watch some videos that are hosted on microsoft Azure. Does the azure blob storage support streaming to my mobile app or can i only download the files?
The video urls shouldn't be exposed to public, as mentioned here.
Has anybody experience in this? I didn't find any reliable infos on the web.
Very important thing here - streaming and live-streaming. If you would like to just upload video files to Azur Blob and access them in the mobile app this is possible. I did tests with .mp4 (I did not test other formats) files and once they were uploaded I could play them in the mobile app without any problems.
You do not have to worry about the access too - you can secure URLs with Shared Access Signature or Storage Account Key.
You can read more about it below (Data Plane Security):
https://learn.microsoft.com/en-us/azure/storage/storage-security-guide
My scenario is, we want to build mobile Apps (iOS, Android and Windows,mac) which should be able to play protected DRM content as offline play the protected content which was downloaded previously. What are our options with Windows Azure media?
I would like to use offline play back for playready enabled azure media services. Is it still possible or not? please advise.Thanks
This is possible but it is not a supported scenario for Azure Media Services. we only offer DRM solution for online streaming at the moment.
Cheers,
Mingfei Yan
Azure Media Services now supports offline playback scenarios. Offline Fairplay via Apple offline HLS is supported. AMS also provides persistent PlayReady and Widevine licenses for offline playback.
I have a set of videos which I have uploaded via Azure Media Explorer and some via the .NET SDK (Azure Media Services Extensions) in a custom application. I have encoded all with the Media Encoder Standard and the "H264 Multiple Bitrate 720p" preset.
The videos are recordings from a Kinect Sensor (BGRA) and transcoded with ffmpeg to H.264 Base.
When I try to play the videos from the Azure Media Player or from within the Azure Media Services Content Page I get an error message.
Azure Media Player (from my ASP.NET MVC View) gets a "Failed to load resource: the server responded with a status of 403 (Forbidden)" back from AMS and shows a 0x020200193 error message in the player.
The Azure Media Services Playback from within the Portal throws the following error in the JavaScript console:
"VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED)" and shows:
The video could not be loaded, either because the server or network failed or because the format is not supported
If I try to play the samples from the http://amsplayer.azurewebsites.net/ websites they all work. If I try to play my videos on the same websites I get an error message as well.
If I browse to the manifest (http://{myaccountname}.streaming.mediaservices.windows.net/{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx}/{xxxx}.ism/Manifest(format=mpd-time-csf))
I get the following XML response:
<serverError>
<status>403</status>
<subStatus>1000</subStatus>
..
</serverError>
I have tried to change the Storage Container Access (Private, Public Container, and Public Blob), the problem persists.
I have tried to create a completely new Azure Media Service Account and Storage Account - same problem.
The strange detail that puzzles me is that I downloaded, built, and ran this sample https://azure.microsoft.com/en-us/documentation/articles/media-services-dotnet-encode-with-media-encoder-standard/ on the exact same AMS account / Storage Account and the same AMP instance the video plays correctly, and so does the AMS Playback from within the portal.
How do I troubleshoot this? Is this an authentication issue or is this in fact a media format problem? The fact that the BigBuckBunny.mp4 video from the above mentioned article plays from the same account with the same configuration makes me think this is a format issue?
Have anyone used azure media service with xamarin. I am trying to make an portable library which can upload / retrieves video asseset from a standard azure media server. However I am not able to install the nuget package into my project.
Can anyone point me in the right direction
I don't think the default azure media libary is a portable library therefore you cannot add it to your portable library project.
You could however implement this using the available rest documentation.
Media Services Rest Api
We've done something similar for access to blob storage. To avoid having to reference all the azure storage libraries in all our projects.