Hello,
I am using the webCamera pod.
This error occurs after the following happens:
A user calls
webCamPub.startWebcam();
After a while I stop this publisher with this
webCamPub.publisher.stop(null);
and with another user I call again
webCamPub.startWebcam();
At this point I get this error ( right after netstream connect success):
11:20:44 GMT+0200 mainNetStatusHandler: NetStream.Connect.Success
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.adobe.rtc.collaboration::WebcamPublisher/onNetStatus()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\collaboration\WebcamPublisher.as:1400]
The WebcamPublisher function in question (with bolded error line )
protected function onNetStatus(p_evt:NetStatusEvent):void
{
if (p_evt.info.code=="NetStream.Connect.Success") {
setTimeout(sendSnapShotPermission, 500);
_stream.send("|RtmpSampleAccess", true, true);
}
}
If I didmiss the error message, the app continues just fine with the expected behavior.
I did try calling webCamPub.close() after stopping the publisher and the error does not happen but afterwards this same user does not subscribe (with WebCamera pod)...
Any tips apart from implementing my own webcampublisher and webcamsubscriber solution?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi there,
Hmmm, this seems to be a weird race condition - do you see it every time,
regardless of timing? We'll get it fixed for the next release (in weeks, not
months).
In the meantime, a trivial fix would be to subclass WebCamPublisher like
so :
override protected function onNetStatus(p_evt:NetStatusEvent):void
{
if (p_evt.info.code=="NetStream.Connect.Success" && _stream) {
setTimeout(sendSnapShotPermission, 500);
_stream.send("|RtmpSampleAccess", true, true);*
}
}
nigel
Views
Replies
Total Likes
Hi there,
Hmmm, this seems to be a weird race condition - do you see it every time,
regardless of timing? We'll get it fixed for the next release (in weeks, not
months).
In the meantime, a trivial fix would be to subclass WebCamPublisher like
so :
override protected function onNetStatus(p_evt:NetStatusEvent):void
{
if (p_evt.info.code=="NetStream.Connect.Success" && _stream) {
setTimeout(sendSnapShotPermission, 500);
_stream.send("|RtmpSampleAccess", true, true);*
}
}
nigel
Views
Replies
Total Likes
Yep, that did it, appreciated Nigel.
The error was quite consistent although I managed to catch a few occasions when it did not occur. Maybe some kind of synching issue with _stream...
Anyway, the stuff works now which will do it for me.
Views
Replies
Total Likes