Revision 6264eb8b

View differences:

html/janus.nojquery.js
2050 2050
				config.bitrate.timer = setInterval(function() {
2051 2051
					config.pc.getStats()
2052 2052
						.then(function(stats) {
2053
							stats.forEach(res => {
2053
							stats.forEach(function (res) {
2054 2054
								if(res && (res.mediaType === "video" || res.id.toLowerCase().indexOf("video") > -1) &&
2055 2055
										res.type === "inbound-rtp" && res.id.indexOf("rtcp") < 0) {
2056 2056
									config.bitrate.bsnow = res.bytesReceived;

Also available in: Unified diff