dioufb / sipml5

Automatically exported from code.google.com/p/sipml5
Other
0 stars 0 forks source link

Make SIPml-api compliant for audio only #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Should be able to pass what type of media is wanted from "getUserMedia". If 
just audio is wanted don't need to give access to the camera as well.

Secondly with chrome24 and beyond when an audio stream is added from the remote 
side it needs to be added to a <audio> HTML5 tag to be played. Some users might 
also want to add the local audio stream to a tag as well. The library also 
seems to be video biased with event names like 'm_stream_video_remote_added', 
but this event is also fired when an audio stream is added.

I was able to get it working by adding a audio tag to the video_remote 
attribute of a newSession, however this should probably be renamed to 
"stream_remote" as it can be either audio or audio+video or just video. 
Additionally I had to extend SIPml.js to accept a HMLAudioElement as well as an 
HTMLVideoElement for this.videoRemote.

Original issue reported on code.google.com by n...@firespotter.com on 18 Dec 2012 at 3:33

GoogleCodeExporter commented 8 years ago

Original comment by boss...@yahoo.fr on 18 Dec 2012 at 7:20

GoogleCodeExporter commented 8 years ago
Fixed by r165

Original comment by boss...@yahoo.fr on 14 Jan 2013 at 3:51