File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Open diff view settings
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Open diff view settings
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ var CONTROLLER = window.CONTROLLER = function(phone, stream){
6767 video . volume = 0.0 ;
6868 video . play ( ) ;
6969 //vid.innerHTML=""
70+ vid . setAttribute ( 'autoplay' , 'autoplay' ) ;
7071 vid . setAttribute ( 'data-number' , phone . number ( ) ) ;
7172 vid . style . cssText = "-moz-transform: scale(-1, 1); \
7273 -webkit-transform: scale(-1, 1); -o-transform: scale(-1, 1); \
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ var PHONE = window.PHONE = function(config) {
1616 var myconnection = false ;
1717 var mediaconf = config . media || { audio : true , video : true } ;
1818 var conversations = { } ;
19- var streamWatch = config . streamWatch || false ;
19+ var oneway = config . oneway || false ;
2020
2121 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
2222 // RTC Peer Connection Session (one per call)
@@ -403,7 +403,7 @@ var PHONE = window.PHONE = function(config) {
403403 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
404404 function onready ( subscribed ) {
405405 if ( subscribed ) myconnection = true ;
406- if ( ! ( ( mystream || streamWatch ) && myconnection ) ) return ;
406+ if ( ! ( ( mystream || oneway ) && myconnection ) ) return ;
407407
408408 connectcb ( ) ;
409409 readycb ( ) ;
@@ -413,7 +413,7 @@ var PHONE = window.PHONE = function(config) {
413413 // Prepare Local Media Camera and Mic
414414 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
415415 function getusermedia ( ) { //Do something if not requesting any media?
416- if ( streamWatch ) {
416+ if ( oneway ) {
417417 onready ( ) ;
418418 subscribe ( ) ;
419419 return ;
Original file line number Diff line number Diff line change 9090 addLog ( "Streaming to " + streamName ) ;
9191 } ) ;
9292 ctrl . receive ( function ( session ) {
93- session . connected ( function ( session ) { session . pc . close ( ) ; addLog ( session . number + " has joined." ) ; } ) ;
93+ session . connected ( function ( session ) { addLog ( session . number + " has joined." ) ; } ) ;
9494 session . ended ( function ( session ) { addLog ( session . number + " has left." ) ; console . log ( session ) } ) ;
9595 } ) ;
9696 ctrl . streamPresence ( function ( m ) {
You can’t perform that action at this time.
0 commit comments