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?