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
Related
I am new to Web-Development and have therefor maybe a beginner question.
So I am having a Web-App with an Angular Frontend und .Net backend, deployed on Azure.
Now users should be able to upload files (pdf, etc.) to the server which sould be stored permanetly. I would prefer to store them on a normal filesystem, so I don't want to use a database. Futhermore the files should be accessible for external services for futher processing.
I am not sure if that is possible with Azure App Services or if I need some other components. The only way I found to store files on the server is in the "wwwroot" folder. But I found no way to download them from the outside. Should I create a Web-API for that or do I think to complicated? Should I deploy my App somewhere else? What could be a way to implement this?
Thanks for any help.
You should use Azure Storage.
In Azure storage you can find mainly two options in your case. Blob and File Storage.
Blob is "more advanced" in a sense that it serves files on the browser, streaming video and audio etc.
File storage is a replacement of an on-premises file server.
Both options support file access by external services, and in addition to authorization, both are supported with Azure AD and shared access token.
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
I'm using a wordpress template and have multiple media uploaders. When they embedd/insert their content from the media library, they should only be able to see and embedd their uploaded content. My goal is to host the website in Azure and also use its media services for video content. Is there an elegant frontend way with wich users can upload their content an reembedd it after transcoding?
I think that there is no plugin that supports directly Azure Media Services encoding workflows in WordPress.
Maybe you can do it in a few steps :
Use the WordPress Azure Storage plugins to upload your files : https://wordpress.org/plugins/windows-azure-storage/
Use an Azure WebJob to trigger encoding as soon as a file is uploaded in the storage : https://github.com/Azure/azure-content/blob/master/articles/app-service-web/websites-dotnet-webjobs-sdk-storage-blobs-how-to.md and https://azure.microsoft.com/en-us/documentation/articles/media-services-dotnet-encode-asset/
Display the video on your site, using Azure Media Player : http://amsplayer.azurewebsites.net/
Hope this helps,
Julien
I have used the info on this link to create a windows phone sample of uploading images to Azure Blob Storage by using Mobile Services.
http://www.windowsazure.com/en-us/develop/mobile/tutorials/upload-images-to-storage-wp8/
I want to now try and use Xamarin Component of Azure Mobile Services to achieve the same result from Android and iOS. Does Xamarin component have support for this? Also, if anyone has done this before from Xamarin, could you please point me in the correct direction? I couldn't find much information on this topic of using blob storage from within Xamarin for Android or iOS
You can use Zach's Blob Uploader:
https://github.com/zgramana/IOSAzureBlobUploader
This is a lot simpler than using the AMS features for this (but lacks the features like expiration of the url and some auth bits).
You really want to use a web service between your blob storage account, and your Mobile app, unless your app is allowing users to access their own blob storage accounts. If you are determined to make a Xamarin app use Blob storage directly, you can use this Mono port.. it takes a bit of work to get it functioning. It also won't handle some functions in Azure Blob storage. I could only get "Download" to work. Deleting.. and uploading functions were broken. Maybe I screwed up the port to Xamarin.
Mono Azure sdk port
By using that sdk port, I was able to make an IOS app called "Blob Client" that allowed users to at least download their files on IOS. Made it as a tool for myself.. for a project I had, but then went ahead and put it out on the store.
Blob Client on IOS.
Here is an article on connecting to Blog Storage in Xamarin via the Azure Storage package. It's currently in preview but should be what you are looking for.
https://azure.microsoft.com/en-us/documentation/articles/storage-xamarin-blob-storage/
I'm trying to make an app wich will upload videofiles to the cloud. I found some examples that explain how to upload file to cloud from the local computer with using the file path.
But i can't find how can i make an interactive app in which user can download video from web page.
Have anyone seeing something similar?
take a look into http://www.windowsazure.com/en-us/solutions/media/ . It describe main scenarios and capabilities of Microsoft Azure Media Services.
Developer portal for Azure Media Services located at
http://www.windowsazure.com/en-us/develop/media-services/. It has getting starting articles covering following scenarios:
Upload
Encode
Deliver
Consume