...
Code Block | ||||
---|---|---|---|---|
| ||||
publishStream.getStats(function (stats) { if (stats && stats.outboundStream) { if(stats.outboundStream.videoStats) { $('#outVideoStatBytesSent').text(stats.outboundStream.videoStats.bytesSent); $('#outVideoStatPacketsSent').text(stats.outboundStream.videoStats.packetsSent); $('#outVideoStatFramesEncoded').text(stats.outboundStream.videoStats.framesEncoded); } else { ... } if(stats.outboundStream.audioStats) { $('#outAudioStatBytesSent').text(stats.outboundStream.audioStats.bytesSent); $('#outAudioStatPacketsSent').text(stats.outboundStream.audioStats.packetsSent); } else { ... } } }); |
2. Sattistics Statistics displaying while stream is played
...