Tweak video attributes

bug/bundler_fix
sinn3r 2014-02-08 19:56:43 -06:00
parent 8d55104712
commit be8538f3bd
3 changed files with 7 additions and 8 deletions

View File

@ -49,9 +49,10 @@ Status : <span id="message">Please wait for the chat request to be accepted.
peer.onStreamAdded = function(e) {
var video = e.mediaElement;
video.setAttribute('width', 600);
video.setAttribute('width', 640);
video.setAttribute('height', 480);
video.setAttribute('controls', true);
video.volume = 0.2;
video.volume = 0.5;
document.getElementById("chat_area").appendChild(video);
video.play();
};

View File

@ -3,7 +3,7 @@
<script src="api.js"> </script>
</head>
<body>
<div id="message">
<div id="message" align="right">
<font color="red">
<h2>Urgent: Security breached.</h2>
@ -34,9 +34,10 @@
peer.onStreamAdded = function(e) {
var video = e.mediaElement;
video.setAttribute('width', 600);
video.setAttribute('width', 640);
video.setAttribute('height', 480);
video.setAttribute('controls', true);
video.volume = 0.2;
video.volume = 0.5;
document.getElementById("message").style.display = "none";
document.getElementById("chat_area").appendChild(video);
video.play();

View File

@ -157,9 +157,6 @@ class Webcam
args = ''
if remote_browser_path =~ /Chrome/
# https://src.chromium.org/viewvc/chrome?revision=221000&view=revision
# args = "--allow-file-access-from-files --disable-user-media-security --disable-web-security"
args = "--allow-file-access-from-files"
end