api/easyrtc.js
function validateVideoIds(monitorVideoId, videoIds) {
            var i;
            // verify that video ids were not typos.
            if (monitorVideoId && !document.getElementById(monitorVideoId)) {
                easyrtc.showError(easyrtc.errCodes.DEVELOPER_ERR, "The monitor video id passed to easyApp was bad, saw " + monitorVideoId);
                return false;
            }
    
            for (i in videoIds) {
                if (!videoIds.hasOwnProperty(i)) {
                    continue;
                }
                var name = videoIds[i];
                if (!document.getElementById(name)) {
                    easyrtc.showError(easyrtc.errCodes.DEVELOPER_ERR, "The caller video id '" + name + "' passed to easyApp was bad.");
                    return false;
                }
            }
            return true;
        }
function validateVideoIds(monitorVideoId, videoIds) {
            var i;
            // verify that video ids were not typos.
            if (monitorVideoId && !document.getElementById(monitorVideoId)) {
                easyrtc.showError(easyrtc.errCodes.DEVELOPER_ERR, "The monitor video id passed to easyApp was bad, saw " + monitorVideoId);
                return false;
            }
    
            for (i in videoIds) {
                if (!videoIds.hasOwnProperty(i)) {
                    continue;
                }
                var name = videoIds[i];
                if (!document.getElementById(name)) {
                    easyrtc.showError(easyrtc.errCodes.DEVELOPER_ERR, "The caller video id '" + name + "' passed to easyApp was bad.");
                    return false;
                }
            }
            return true;
        }
function validateVideoIds ( monitorVideoId , videoIds ) { var i ; // verify that video ids were not typos. if ( monitorVideoId && ! document . getElementById ( monitorVideoId ) ) { easyrtc . showError ( easyrtc . errCodes . DEVELOPER_ERR , "The monitor video id passed to easyApp was bad, saw " + monitorVideoId ) ; return false ; } for ( i in videoIds ) { if ( ! videoIds . hasOwnProperty ( i ) ) { continue ; } var name = videoIds [ i ] ; if ( ! document . getElementById ( name ) ) { easyrtc . showError ( easyrtc . errCodes . DEVELOPER_ERR , "The caller video id '" + name + "' passed to easyApp was bad." ) ; return false ; } } return true ; }
Validates that the video ids correspond to dom objects.
@param {String} monitorVideoId
@param {Array} videoIds
@returns {Boolean}
@private
Validates that the video ids correspond to dom objects .