upgrade montage to use Monitor object and getStreamSrc which knows which server to connect to

This commit is contained in:
Isaac Connor 2015-12-02 12:10:32 -05:00
parent 34f6590107
commit f54b8c27ee
1 changed files with 6 additions and 1 deletions

View File

@ -31,7 +31,12 @@ var monitorData = new Array();
foreach ( $monitors as $monitor ) foreach ( $monitors as $monitor )
{ {
?> ?>
monitorData[monitorData.length] = { 'id': <?php echo $monitor['Id'] ?>, 'connKey': <?php echo $monitor['connKey'] ?>, 'width': <?php echo $monitor['Width'] ?>,'height':<?php echo $monitor['Height'] ?> }; monitorData[monitorData.length] = {
'id': <?php echo $monitor->Id() ?>,
'connKey': <?php echo $monitor->connKey() ?>,
'width': <?php echo $monitor->Width() ?>,
'height':<?php echo $monitor->Height() ?>
};
<?php <?php
} }
?> ?>