VideoJS live RTMP stream, player and video size issue



I have setup a page with a videojs html5 player that automatically starts to play a remote RTMP live stream. It works.

When I start the stream the video appears as a tiny box in the top left of the player. The player is 1280x720 and the video is streaming from a computer or android phone at any resolution, but it also starts in the top left corner.

I haven't measured the resolution of the video in the corner but I'd guess it's about 40x40. When I select the fullscreen option the video stretches to full screen. When I shut off fullscreen the video correctly fills in the player.

I would expect the video to start and fill the player right away without having to fullscreen/restore it. Any advice or direction would be greatly appreciated it.

This is what I'm working with

<html>
<head>
<title> Stream Player </title>
 <link href="video-js.css" rel="stylesheet" type="text/css">
  <script src="video.js"></script>
  <script>
    videojs.options.flash.swf = "video-js.swf";
  </script>
</head>
<body bgcolor=000000>
 <center>
  <font face="verdana" color=993333><h1>Test</h1></font>
   <video id="livestream" class="video-js vjs-default-skin vjs-big-play-centered"
     controls autoplay preload="auto" width="1280" height="720"
     data-setup='{"example_option":true}'>
      <source src="rtmp://webserver.example:1935/live/streamname" type="rtmp/mp4">
   </video>
 </center>
</body>
</html>

share | improve this question
 
   
I switched my search terms on google from to include "squished" and got some helpful results: github.com/videojs/video-js-swf/issues/55 –  Wally Anderson May 21 '15 at 20:06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值