WebRTC Cookbook by 2015

WebRTC Cookbook by 2015

Author:2015
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


Now, the following code represents how all that we just have written can be used in the application:var onRemoteStreamAdded = function(event) { clog("Remote stream added."); attachMediaStream(remoteVideo, event.stream); remoteStream = event.stream; initStats(pc); };

Here, we will call the iniStats function. This function will get the first data from the statistics API; store it in the memory, and set up a time for one second. Then, every second another function will be called—it will get the next statistics sample and do calculations trying to determine if something is wrong with the packet loss value.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.