いくつかの時間以来、私たちはAzure Media Serviceに動画をアップロードし、それをモバイルで見ることを試みています。これはPCで正しく動作し、状況は非常に狂っています。Azure Media Servicesにビデオをアップロードしてモバイルで見るにはどうすればいいですか?
.NET APIを使用してAzure Media Serviceに動画をアップロードします。 Azure Media Playerでそのビデオを見ることができます。しかしAzureの管理(ビデオを見るオプションがあります)以来ではありません。 azureメディアプレイヤーのサンプルビューアでもありません
問題がAzure Administration、Azure Media Playerまたはビデオをアップロードしている(アセットの作成、エンコード、ロケータとポリシーの作成...) 。
これは、自分の動画のいずれかです。
//Creamos el ASSET a apartir de un archivo
IAsset inputAsset = _context.Assets.CreateFromFile(video.PathFile, AssetCreationOptions.StorageEncrypted);
//Encode/Codificación del vídeo. Transformamos el primer asset en otro que será el realmente difundido. Se usa un patrón (JSON/XML) definido en video.Enconder
IAsset encodedAsset = EncodeToAdaptiveBitrate(inputAsset, AssetCreationOptions.None, video.Enconder, video.GetAssetName(), video);
//If I use "AssetDeliveryProtocol.All", throw error: "Account is not enabled for HDS streaming"
IAssetDeliveryPolicy policy = _context.AssetDeliveryPolicies.Create("Clear Policy", AssetDeliveryPolicyType.NoDynamicEncryption, AssetDeliveryProtocol.SmoothStreaming, null);
encodedAsset.DeliveryPolicies.Add(policy);
// Publish the output asset by creating an Origin locator for adaptive streaming
_context.Locators.Create(
LocatorType.OnDemandOrigin,
encodedAsset,
AccessPermissions.Read,
TimeSpan.FromDays(3650));
そしてここで、それは私の「エンコーダ」です:http://media6franquiciasworldw.streaming.mediaservices.windows.net/e70ca01a-0be8-4f54-911c-6f4b85c0d396/12_mixtaSaltamontes.ism/manifest
は、これは私のコードですhttps://pastebin.com/zQ8rS73c
ありがとうございます!使用方法:AssetDeliveryProtocol.SmoothStreaming | AssetDeliveryProtocol.Dash | AssetDeliveryProtocol.HLS これは機能します! – user3809539