justinevans070 / flash-videoio

Automatically exported from code.google.com/p/flash-videoio
0 stars 0 forks source link

Some wishes for better programming on JavaScript #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would like have event or function return result code where registry is ok or 
not ok and function to get status (registered/unregistered/busy(calling)).

Desirable have event for all functions that can affect to talk.
And if possible event where changing sound rate (microphone), for writing sound 
rate indicator on JavaScript.

Original issue reported on code.google.com by LobodaAl...@gmail.com on 11 May 2011 at 10:56

GoogleCodeExporter commented 9 years ago
The "src" property is reset to null if the connection fails with the siprtmp.py 
gateway. The connection failure indicates registration failure. You can capture 
this event in onPropertyChange (please see the article on How to use the 
VideoIO API?). Thus the registered/unregistered can be implemented in the 
application.

Similarly, since all of "invite", "invited", "accept", "accepted", "bye", 
"byed" are available to or called from Javascript, you can have this state in 
the application itself instead of in the VideoIO. The reason is that VideoIO is 
pretty transparent to the SIP processing, and just acts as a thin layer between 
your javascript application and the siprtmp.py gateway, by sending/receiving 
all RPC calls.

The sound rate of the microphone (as well as other properties as listed in How 
to use the VideoIO API?) can be captured using the onPropertyChange method in 
Javascript. This will allow you to write any such rate indicator in javascript 
I feel. Please let me know if this doesn't work for you or if the event is not 
getting dispatched in onPropertyChange.

Original comment by kundan10 on 25 May 2011 at 7:20