<label><input id="use_vid" type="checkbox" value="foo" > Use Video</label>
<label><input id="use_stereo" type="checkbox" value="foo" > Stereo Audio</label>
<label><input id="use_stun" type="checkbox" value="foo" > Use STUN</label>
+ <label><input id="local_video" type="checkbox" value="foo" > Local Video</label>
</div>
<br>
verto.iceServers(tmp);
}
});
+
+
+ tmp = $.cookie("verto_demo_local_video_checked") || "true";
+ $.cookie("verto_demo_local_video_checked", tmp, {
+ expires: 365
+ });
+
+ $("#local_video").prop("checked", tmp === "true").change(function(e) {
+ tmp = $("#local_video").is(':checked');
+ $.cookie("verto_demo_local_video_checked", tmp ? "true" : "false", {
+ expires: 365
+ });
+ if (verto) {
+ verto.iceServers(tmp);
+ }
+ });
check_vid_res();
passwd: $("#passwd").val(),
socketUrl: $("#wsURL").val(),
tag: "webcam",
- localTag: "local_webcam",
+ localTag: $("#local_video").is(':checked') ? "local_webcam" : null,
ringFile: "sounds/bell_ring2.wav",
videoParams: {
"minWidth": vid_width,