1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine ui, unify the player size

This commit is contained in:
winlin 2013-12-21 11:37:46 +08:00
parent 21c6001210
commit 65a5f4d460
6 changed files with 61 additions and 21 deletions

View file

@ -12,6 +12,10 @@
body{
padding-top: 55px;
}
#main_modal {
width: 700px;
margin-left: -350px;
}
</style>
<script type="text/javascript">
function osmf_play(url) {
@ -41,7 +45,7 @@
swfobject.embedSWF(
"js/StrobeMediaPlayback.swf", "player_id",
530, 300,
srs_get_player_width(), srs_get_player_height(),
"11.1", "js/AdobeFlashPlayerInstall.swf",
flashvars, params, attributes
);
@ -50,7 +54,7 @@
// get the vhost and port to set the default url.
// for example: http://192.168.1.213/players/jwplayer6.html?port=1935&vhost=demo
// url set to: rtmp://demo:1935/live/livestream
srs_init($("#txt_url"));
srs_init("#txt_url", null, "#main_modal");
$("#main_modal").on("hide", function(){
osmf_play("http://localhost");