Hi;
I am working on display live video, so that I used VideoDisplay property to
display camera stream in the user view.
I used localVideo.videoObject.attachCamera(cam);
It throws an error like this
Error #1009: Cannot access a property or method of a null object reference.
there is only one issue with this that is localVideo.videoObject shows null
object error.
other than that all the values are set.
Sample Code:
protected function video_creationCompleteHandler(event:FlexEvent):void
{
var _dynVideoSource :
DynamicStreamingVideoSource =new
DynamicStreamingVideoSource();
var
videoItems:Vector.<DynamicStreamingVideoItem>;
videoItems=new
Vector.<DynamicStreamingVideoItem>();
videoItems[0]=new DynamicStreamingVideoItem();
_dynVideoSource.host= "";
_dynVideoSource.streamType=StreamType.LIVE;
_dynVideoSource.streamItems=videoItems;
localVideo.source=_dynVideoSource;
}
<s:VideoDisplay id="localVideo" visible="false"
creationComplete="video_creationCompleteHandler(event);" />
Is there any osmf.swc error with Apache Flex sdk 4.12 RC1?
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Unable-to-attach-videoObject-for-VideoDisplay-tp5000.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.