以前はこれが機能していましたが、機能しなくなり、何かを変更したことを覚えていません。次のエラーが表示されます
ArgumentError: Error #2126: NetConnection object must be connected.
at flash.net::NetStream/ctor()
at flash.net::NetStream()
at Classes::AccessCamera/UICompleteHandler()
Cannot display source code at this location.
Debug session terminated.
ビデオを再生するための私のコードは次のとおりです。
var conn:NetConnection = new NetConnection();
var stream:NetStream = new NetStream(conn);
var media:MediaPromise = event.data;
trace(media.file.url + " - " + media.relativePath + " - " +media.mediaType);
parent.addChild(video);
conn.connect(null);
//attach a stream to the video-object
video.attachNetStream(stream);
stream.client = new MobileClient();
//play the stream
stream.play(media.file.url);
私はこれに行き詰まっており、どんな助けも大歓迎です。