2017-05-11 1 views
0

いくつかの時間以来、私たちは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

答えて

0

私はその問題のいくつかを注意してくださいここで間違っているかもしれません。

  1. アカウントにStreaming Endpointが起動していますか?それが最初にあることを確認してください。
  2. AssetDeliveryProtocol.Allは使用しないでください。 SDKにはAdobe HDSを追加しようとする問題があります.DVDはサポートを中止しています。配信プロトコルでストリーミングするために必要な特定のプロトコルのみを使用したい場合があります。したがって、次の パターンを使用します。 AssetDeliveryProtocol.SmoothStreaming | AssetDeliveryProtocol.Dash | AssetDeliveryProtocol.HLS | AssetDeliveryProtocol.ProgressiveDownload
あなたは可能性が高いため、あなただけの唯一のデスクトップまたはカスタムでサポートされるだろうSmoothStreamingを、許可するプロトコルを設定しているという事実にiOS版やAndroidクライアント上の任意の再生を取得していなかった

モバイルクライアント。 Android用のDASHとiOS用のApple HLSを追加すると、ここで役立ちます。

+0

ありがとうございます!使用方法:AssetDeliveryProtocol.SmoothStreaming | AssetDeliveryProtocol.Dash | AssetDeliveryProtocol.HLS これは機能します! – user3809539

関連する問題