Hi,
I've created P2P audio/video application that works, in some actions like mute or stop i'm getting the exceptions as described below(Those exception occurs only sometimes).
I'll appreciate if someone can point out what is the nature of those exceptions and how to resolve them.
I also attached some of my code that does those actions.
public function stopPublishCamera():void
{
try
{
if(camPublish.isPublishing){
camPublish.stop();
}
paused = true;
}
catch(error:Error){
Alert.show(error.getStackTrace());
}
}
public function mute(status:Boolean):void{
if(audioPub.isPublishing){
audioPub.pause(status);
audioButton.mute = status;
micActivity.activate = !status;
}
}
Exceptions:
Error: Stream cannot be published as it doesnot exists
at com.adobe.rtc.sharedManagers::StreamManager/publishStream()
at com.adobe.rtc.collaboration::AudioPublisher/publish()
at P2PVideo::AVPresenceP2PComponent/startMicrophone()
at P2PVideo::AVPresenceP2PComponent/publishAudio()
at P2PVideo::AVPresenceP2PComponent/__audioButton_activatedChange()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
at P2PVideo::MicrophoneP2PButton/set _1191572123selected()
at P2PVideo::MicrophoneP2PButton/set selected()
at P2PVideo::MicrophoneP2PButton/__micButton_red_click()
Error: StreamManager.removeStreamFromModel : Trying to delete a non existing stream from model
at com.adobe.rtc.sharedManagers::StreamManager/removeStreamFromModel()
at com.adobe.rtc.sharedManagers::StreamManager/onItemRetract()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.rtc.sharedModel::CollectionNode/http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItemRetraction()
at com.adobe.rtc.messaging.manager::MessageManager/http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItemRetraction()
at com.adobe.rtc.session.managers::SessionManagerBase/receiveItemRetraction()
Thanks,
Tzahi
Views
Replies
Total Likes
Hi Tzahi,
Seems like there could be workflow issues with your code. If you share your entire code, we could see whats going wrong.
From the stack trace, you seem to be switching to p2p audio in runtime without stopping the previous stream that is being published. But your mute and stopPublishCamera seems OK to me.
Thanks
Arun
Thanks aponnusa, i will look into my code and check the workflow.
Views
Replies
Total Likes