Sajin
New Member
I am trying out "flashphoner5/client/examples/min/phone/Phone-min.html"
I am able to connect using WebRTC with this example, however I need a fallback to flash as some audio related settings are not working on insecure domains on chrome. So I have made following changes to the example configuration:
f.init({
pathToSWF:'../../../dependencies/flash/MediaManager.swf',
forceFlashForWebRTCBrowser:true,
elementIdForSWF:'MyFlashDiv'});
and
call.mediaProvider = "Flash".
Its being registered, showing FlashPermissionBox, When allow is clicked, call is getting through, but when call is attended it suddenly disconnects from the client.
This appears to be Chrome
Phone-min.js:87 Flash - INFO: UTC 9.18 10:18:3.287: mic Default
Phone-min.js:87 Flash - INFO: UTC 9.18 10:25:47.717: Configuration object: undefined Height: undefined FPS: undefined KEEP_RATIO: undefined KEY_INT: undefined QUALITY: undefined MOTION_LEVEL: undefined BANDWIDTH: undefined
Phone-min.js:87 Flash - INFO: UTC 9.18 10:25:47.729: Final configuration: WIDTH: 0 Height: 0 FPS: 15 KEEP_RATIO: true KEY_INT: 48 QUALITY: 80 MOTION_LEVEL: 2000 BANDWIDTH: 0
Phone-min.js:87 ESTABLISHED
Phone-min.js:87 Connection has been established. You can start a new call.
Phone-min.js:87 REGISTERED
Phone-min.js:87 Flash - INFO: UTC 9.18 10:25:51.998: current mic muted - false
Phone-min.js:87 Flash - INFO: UTC 9.18 10:25:52.1: mic status Microphone.Unmuted
Phone-min.js:87 notifyTryingResponse call.callId:b7ad571f-a552-42cd
Phone-min.js:87 TRYING
Phone-min.js:87 ring call.status: RING call.callId: b7ad571f-a552-42cd
Phone-min.js:87 RING
Phone-min.js:87 Flash - INFO: UTC 9.18 10:26:0.584: changeAudioCodec: pcmu
Phone-min.js:87 Flash - INFO: UTC 9.18 10:26:0.587: changeCodec: pcmu
Phone-min.js:87 Flash - INFO: UTC 9.18 10:26:0.923: PhoneSpeaker play streamName=IN_caller_b7ad571f-a552-42cd; currentStremName=null
Phone-min.js:87 Flash - INFO: UTC 9.18 10:26:0.927: PhoneSpeaker startNewIncomingStream streamName=IN_caller_b7ad571f-a552-42cd
Flashphoner.js:378 Uncaught Error: Error: An invalid exception was thrown.callbacks.talk @ Flashphoner.js:378(anonymous function)
(In Firefox, slightly different)
Error: Error calling method on NPObject!
me.mediaProviders.get(call.mediaProvider).talk(call.callId, call.hasVideo);
Its having an exception: on me.mediaProviders.get(call.mediaProvider).talk(call.callId, call.hasVideo);
I have checked the call object properties: call.callId have a value and call.hasVideo is false.
What could be the reason?
I am able to connect using WebRTC with this example, however I need a fallback to flash as some audio related settings are not working on insecure domains on chrome. So I have made following changes to the example configuration:
f.init({
pathToSWF:'../../../dependencies/flash/MediaManager.swf',
forceFlashForWebRTCBrowser:true,
elementIdForSWF:'MyFlashDiv'});
and
call.mediaProvider = "Flash".
Its being registered, showing FlashPermissionBox, When allow is clicked, call is getting through, but when call is attended it suddenly disconnects from the client.
This appears to be Chrome
Phone-min.js:87 Flash - INFO: UTC 9.18 10:18:3.287: mic Default
Phone-min.js:87 Flash - INFO: UTC 9.18 10:25:47.717: Configuration object: undefined Height: undefined FPS: undefined KEEP_RATIO: undefined KEY_INT: undefined QUALITY: undefined MOTION_LEVEL: undefined BANDWIDTH: undefined
Phone-min.js:87 Flash - INFO: UTC 9.18 10:25:47.729: Final configuration: WIDTH: 0 Height: 0 FPS: 15 KEEP_RATIO: true KEY_INT: 48 QUALITY: 80 MOTION_LEVEL: 2000 BANDWIDTH: 0
Phone-min.js:87 ESTABLISHED
Phone-min.js:87 Connection has been established. You can start a new call.
Phone-min.js:87 REGISTERED
Phone-min.js:87 Flash - INFO: UTC 9.18 10:25:51.998: current mic muted - false
Phone-min.js:87 Flash - INFO: UTC 9.18 10:25:52.1: mic status Microphone.Unmuted
Phone-min.js:87 notifyTryingResponse call.callId:b7ad571f-a552-42cd
Phone-min.js:87 TRYING
Phone-min.js:87 ring call.status: RING call.callId: b7ad571f-a552-42cd
Phone-min.js:87 RING
Phone-min.js:87 Flash - INFO: UTC 9.18 10:26:0.584: changeAudioCodec: pcmu
Phone-min.js:87 Flash - INFO: UTC 9.18 10:26:0.587: changeCodec: pcmu
Phone-min.js:87 Flash - INFO: UTC 9.18 10:26:0.923: PhoneSpeaker play streamName=IN_caller_b7ad571f-a552-42cd; currentStremName=null
Phone-min.js:87 Flash - INFO: UTC 9.18 10:26:0.927: PhoneSpeaker startNewIncomingStream streamName=IN_caller_b7ad571f-a552-42cd
Flashphoner.js:378 Uncaught Error: Error: An invalid exception was thrown.callbacks.talk @ Flashphoner.js:378(anonymous function)
(In Firefox, slightly different)
Error: Error calling method on NPObject!
me.mediaProviders.get(call.mediaProvider).talk(call.callId, call.hasVideo);
Its having an exception: on me.mediaProviders.get(call.mediaProvider).talk(call.callId, call.hasVideo);
I have checked the call object properties: call.callId have a value and call.hasVideo is false.
What could be the reason?
Last edited: