Revision 6b988354

View differences:

html/janus.nojquery.js
2059 2059
										config.bitrate.tsbefore = config.bitrate.tsnow;
2060 2060
									} else {
2061 2061
										// Calculate bitrate
2062
										var timePassed = config.bitrate.tsnow - config.bitrate.tsbefore;
2062 2063
										if(adapter.browserDetails.browser == "safari")
2063 2064
											timePassed = timePassed/1000;	// Apparently the timestamp is in microseconds, in Safari
2064 2065
										var bitRate = Math.round((config.bitrate.bsnow - config.bitrate.bsbefore) * 8 / timePassed);

Also available in: Unified diff