code: function (result) {
              if (result.stat('googFrameRateSent')) {
                currentStats.videoSentBytes = Number(result.stat('bytesSent'));
                currentStats.videoSentPackets = Number(result.stat('packetsSent'));
                currentStats.videoSentPacketsLost = Number(result.stat('packetsLost'));
                currentStats.videoRtt = Number(result.stat('googRtt'));
                currentStats.videoFrameRate = Number(result.stat('googFrameRateInput'));
                currentStats.videoWidth = Number(result.stat('googFrameWidthSent'));
                currentStats.videoHeight = Number(result.stat('googFrameHeightSent'));
                currentStats.videoCodec = result.stat('googCodecName');
              } else if (result.stat('googFrameRateReceived')) {
                currentStats.videoRecvBytes = Number(result.stat('bytesReceived'));
                currentStats.videoRecvPackets = Number(result.stat('packetsReceived'));
                currentStats.videoRecvPacketsLost = Number(result.stat('packetsLost'));
                currentStats.videoFrameRate = Number(result.stat('googFrameRateOutput'));
                currentStats.videoWidth = Number(result.stat('googFrameWidthReceived'));
                currentStats.videoHeight = Number(result.stat('googFrameHeightReceived'));
                currentStats.videoCodec = result.stat('googCodecName');
              }
              return null;
            }
docs: /* this parses a result if there it contains the video bitrate