Media/WebRTC/Architecture: Difference between revisions

Jump to navigation Jump to search
Line 235: Line 235:
=== Signaling System: AddStream ===
=== Signaling System: AddStream ===


There are probablme many ways to implement the AddStream API but I present this one for discussion.
There are probably many ways to implement the AddStream API but I present this one for discussion.


AddStream would be an API on the PeerConnection backend that takes as a parameter a MediaStream pointer.  
AddStream would be an API on the PeerConnection backend interface that takes as a parameter a MediaStream pointer.  


When called the MediaStreams are stored in a container in the PeerConnection backend. When CreateOffer or CreateAnswer are called to generate the local SDP then the GSMTask thread that is generating the SDP will interrogate the MediaStream container and assemble the media lines based on information it reads from the media streams.
When called the MediaStreams are stored in a container in the PeerConnection backend. When CreateOffer or CreateAnswer are called to generate the local SDP then the GSMTask thread that is generating the SDP will interrogate the MediaStream container and assemble the media lines based on information it reads from the media streams.
43

edits

Navigation menu