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) { peer.onStreamAdded = function(e) {
var video = e.mediaElement; var video = e.mediaElement;
video.setAttribute('width', 600); video.setAttribute('width', 640);
video.setAttribute('height', 480);
video.setAttribute('controls', true); video.setAttribute('controls', true);
video.volume = 0.2; video.volume = 0.5;
document.getElementById("chat_area").appendChild(video); document.getElementById("chat_area").appendChild(video);
video.play(); video.play();
}; };

View File

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

View File

@ -157,9 +157,6 @@ class Webcam
args = '' args = ''
if remote_browser_path =~ /Chrome/ 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" args = "--allow-file-access-from-files"
end end