私はAzure Media Servicesでホストされているビデオを持っています。私は、H264マルチビットレート1080pエンコーディングプリセットを使用してビデオをエンコードしました(他のものも試しました)。ストリーミング用に公開した後、次のエンドポイントを取得します。iOSのAzure Media Servicesでホストされているストリーミングビデオ(Xamarin)
Smooth Streaming
http://mysite.streaming.mediaservices.windows.net/eaaa9f34-e39a-4393-a93b-14a7609ebd27/sampleVid.ism/manifest
MPEG-DASH
http://mysite.streaming.mediaservices.windows.net/eaaa9f34-e39a-4393-a93b-14a7609ebd27/sampleVid.ism/manifest(format=mpd-time-csf)
HLS(v3)
http://mysite.streaming.mediaservices.windows.net/eaaa9f34-e39a-4393-a93b-14a7609ebd27/sampleVid.ism/manifest(format=m3u8-aapl-v3)
HLS(v4)
http://mysite.streaming.mediaservices.windows.net/eaaa9f34-e39a-4393-a93b-14a7609ebd27/sampleVid.ism/manifest(format=m3u8-aapl)
(私は個人用サイト以下と私の実際のサイト名を置き換え)私は正常にHLS(V4)のURLを使用してアンドロイドのためのビデオをストリーミングしているので、私は映像作品を知っています。
私はこのチュートリアルに従いました。 https://developer.xamarin.com/recipes/ios/media/video_and_photos/play_a_video_using_avplayer/
ローカルビデオを正常に再生できました。私はこのリンゴのチュートリアルに続いてリモートビデオを再生することもできました。 https://developer.apple.com/library/prerelease/content/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/02_Playback.html
私が使用しているURLに何か問題がありますが、それが何であるか把握できません。ここに私のViewDidLoadメソッドのコードです。
var myUrl = NSUrl.FromString("http://myurl.streaming.mediaservices.windows.net/eaaa9f34-e39a-4393-a93b-14a7609ebd27/sampleVid.ism/manifest(format=m3u8-aapl)");
var appleUrl = NSUrl.FromString("http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8");
_playerItem = new AVPlayerItem(myUrl);
_player = new AVPlayer(_playerItem);
_playerLayer = AVPlayerLayer.FromPlayer(_player);
_playerLayer.Frame = ProfileVideoContainerView.Frame;
ProfileVideoContainerView.Layer.AddSublayer(_playerLayer);
_player.Play();
myUrlは機能しませんが、appleUrlは機能します。