简体   繁体   English

Azure Blob存储或媒体服务,用于存储简短的移动录制视频

[英]Azure Blob Storage or Media service for storing short Mobile recorded Videos

Background information: 背景资料:

Right now I'm storing jpeg images in azure blob storage and it works fine. 现在,我将jpeg图像存储在天蓝色的blob存储中,并且工作正常。 Now, however I'd like to store videos that have been recorded from iOS or Android devices and send them to either an azure blob storage or media service thru an asp.net web api. 现在,但是,我想存储从iOS或Android设备录制的视频,并通过asp.net Web API将其发送到Azure Blob存储或媒体服务。 I tried uploading a mp4 to the blob storage and then I tried to use it in my code like this: 我尝试将mp4上传到Blob存储,然后尝试在我的代码中使用它,如下所示:

<iframe width="560" height="315" src="video.mp4"></iframe>

The video plays fine in iOS devices, unfortunately it's not playing at all in Android though. 该视频在iOS设备上可以正常播放,但不幸的是,在Android设备上根本无法播放。

BUT if I upload the same mp4 video to azure media service the video works in Android aswell for some reason i unaware of. 但是,如果我将相同的mp4视频上传到Azure媒体服务,则由于某些我不知道的原因,该视频也可以在Android中运行。

Question: Given my background information, which one should i choose, blob storage or media services? 问题:根据我的背景信息,我应该选择blob存储或媒体服务中的哪一项? Also, will there be any price differences depending on which one i choose given my scenario, at this moment I'd like to choose media services simply because the video actually worked in both iOS & Android without any configuration while from blob storage it didn't. 另外,根据情况我会选择哪种价格,会有价格差异吗?目前,我只想选择媒体服务,因为该视频实际上可以在iOS和Android上正常工作,而无需任何配置,而来自blob存储, t。

Any help or input about this highly appreciated, Thanks! 任何有关此的帮助或意见,深表感谢,谢谢!

If you want to upload / access blob storage directly from IOS or Android clients you can also do this using our mobile client libraries. 如果您想直接从IOS或Android客户端上载/访问Blob存储,也可以使用我们的移动客户端库进行此操作。 See the following two getting started guides for more information: 有关更多信息,请参见以下两个入门指南:

Give your video is very short (I guess less than a minute), I think using progressive download is a better solution. 给您的视频很短(我想不到一分钟),我认为使用渐进式下载是更好的解决方案。 You can store media file in blob storage and get a SAS locator (for each blob you can only have to up to 5 locator) to playback the content. 您可以将媒体文件存储在Blob存储中,并获得SAS定位器(对于每个Blob,您最多只能有5个定位器)来播放内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM