FS-7585 make resolution configurable

This commit is contained in:
Seven Du 2015-05-29 15:37:20 +08:00
parent 8adca82644
commit 4a2eb5fe3f
2 changed files with 7 additions and 3 deletions

Binary file not shown.

View File

@ -10,7 +10,11 @@
var flashvars = {
rtmp_url: 'rtmp://' + document.location.hostname + '/phone',
local_loopback: 2, // x pos if local video
buffer_time: 0
buffer_time: 0,
width: 640,
height: 480,
display_width: 640,
display_height: 480
};
var params = {
@ -171,7 +175,7 @@
<input type="button" name="some_name" value="Settings" id="some_name" onclick="settings()">
</div>
<div style="border:2px solid blue;float:left;padding:5px">
<div style="border:0px solid blue;float:left;padding:0px">
<div id="flash">
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
@ -183,7 +187,7 @@
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
swfobject.embedSWF("freeswitch-h264.swf", "flash", "360", "296", "11.2.202.229", "expressInstall.swf", flashvars, params, []);
swfobject.embedSWF("freeswitch-h264.swf", "flash", "640", "480", "11.2.202.229", "expressInstall.swf", flashvars, params, []);
flash = $('#flash')[0];
$('#user').val("1000@" + window.location.hostname);