ビデオ オブジェクトで BitmapData.draw() を使用しようとしていますが、OSMF フレームワークを使用しています。
私のホスティング サービスは、rtmp ビデオにアクセスできるように次のように設定しています。
<VideoSampleAccess enabled="true">/</VideoSampleAccess>
簡略化されたコードは次のとおりです。
_videoURL = "my-url-here"
resource = new StreamingURLResource(_videoURL);
videoElement = new VideoElement(resource);
_player.media = videoElement;
container.addMediaElement(videoElement);
_player.autoPlay = true;
_player.play();
// later on, pause the player at the end
_player.pause();
// get the Video object
videoObj = _player.displayObject as Video;
// detach the netstream
videoObj.attachNetStream(null);
// get the bitmap from the Video object and draw on it..
bmpdata:BitmapData = new BitmapData(videoObj);
bmpdata.draw()
ただし、次のエラー メッセージが表示されます。
SecurityError: Error #2135: Security sandbox violation: BitmapData.draw: ...