stephenlb / webrtc-sdk

WebRTC Simple Calling API + Mobile SDK - A simplified approach to RTCPeerConnection for mobile and web video calling apps.
https://stephenlb.github.io/webrtc-sdk/
MIT License
854 stars 279 forks source link

Exposed local stream as a property of phone, added data-number tag to… #5

Closed GleasonK closed 7 years ago

GleasonK commented 9 years ago

… video so it can be identified in group chats.

PHONE.mystream     = mystream;

Exposed the stream to make it more simple to broadcast, this will make 1-to-many video streaming easier/possible with a wrapper library.

vid.setAttribute( 'data-number', number );

This tags each video element with who the chat is showing, this way the remove callback can choose which video element to remove in a group chat.