If I understand your problem (and thats a bit of guess), you want a single file that automatically decides what to send based on the machines capability.
Removing "the consistency check" would be modifying the easyrtc.js code. You could do it, I just wouldn't recommend it.
The cleaner approach is:
Determine if you have any video cameras hooked up, if you don't, disable video.
Determine if you have a microphone hooked up, if don't, disable audio.
You can check these two items with:
easyrtc.getVideoSourceList and easyrtc.getAudioSourceList
/**
* Gets a list of the available audio sources (ie, cameras)
* @param {Function} callback receives list of {label:String, id:String, kind:"audio"}
* Note: the label string always seems to be the empty string if you aren't using https.
* Note: not supported by Firefox.
* @example easyrtc.getAudioSourceList( function(list) {
* var i;
* for( i = 0; i < list.length; i++ ) {
* console.log("label=" + list[i].label + ", id= " + list[i].id);
* }
* });
*/
this.getAudioSourceList = function(callback){
getSourceList(callback, "audio");
};
/**
* Gets a list of the available video sources (ie, cameras)
* @param {Function} callback receives list of {facing:String, label:String, id:String, kind:"video"}
* Note: the label string always seems to be the empty string if you aren't using https.
* Note: not supported by Firefox.
* @example easyrtc.getVideoSourceList( function(list) {
* var i;
* for( i = 0; i < list.length; i++ ) {
* console.log("label=" + list[i].label + ", id= " + list[i].id);
* }
* });
*/
this.getVideoSourceList = function(callback) {
getSourceList(callback, "video");
};
If instead, you actually want two different URLs, then the problem is easier, you take the audio_only demo and the video_only demo, and modify them so that they use the same app name (the first argument to easyrtc.easyApp), resulting in them "seeing each other".