src/js/utils.js
/**
 * Check if the getStats API for retrieving legacy stats report is supported
 */
Check if the getStats API for retrieving legacy stats report is supported
Check if the getStats API for retrieving legacy stats report is supported
function isLegacyStatsReportSupported(pc) {
    return new Promise(function(resolve) {
        pc.getStats(function() {
            resolve(true);
        }).catch(function() {
            resolve(false);
        });
    });
}
function isLegacyStatsReportSupported ( pc ) { return new Promise ( function ( resolve ) { pc . getStats ( function ( ) { resolve ( true ) ; } ) . catch ( function ( ) { resolve ( false ) ; } ) ; } ) ; }
Check if the getStats API for retrieving legacy stats report is supported
Check if the getStats API for retrieving legacy stats report is supported
// Exception thrown if browser does not support legacy stats report