Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3a4767b

Browse filesBrowse files
committed
Autoplay on addLocalStream
1 parent 3c86f88 commit 3a4767b
Copy full SHA for 3a4767b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Open diff view settings
Collapse file

‎js/rtc-controller.js‎

Copy file name to clipboardExpand all lines: js/rtc-controller.js
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,11 @@ var CONTROLLER = window.CONTROLLER = function(phone, stream){
6262

6363
function broadcast(vid){
6464
var video = document.createElement('video');
65-
6665
video.src = URL.createObjectURL(phone.mystream);
6766
video.volume = 0.0;
6867
video.play();
69-
//vid.innerHTML=""
70-
vid.setAttribute( 'autoplay', 'autoplay' );
71-
vid.setAttribute( 'data-number', phone.number() );
68+
video.setAttribute( 'autoplay', 'autoplay' );
69+
video.setAttribute( 'data-number', phone.number() );
7270
vid.style.cssText ="-moz-transform: scale(-1, 1); \
7371
-webkit-transform: scale(-1, 1); -o-transform: scale(-1, 1); \
7472
transform: scale(-1, 1); filter: FlipH;";

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.