its*_*_me 5 video streaming rtmp video-streaming
让我举个例子.这是视频嵌入代码:
<script type="text/javascript" src="jwplayer/jwplayer.js"></script>
<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "jwplayer/player.swf",
file: "bmw/250413/vod.flv",
streamer:'rtmp://216.185.104.75/vod',
autoplay:"true",
icons:"true",
skin:"glow.zip",
controlbar:"over",
height: 270,
width: 480,
image: "images/bmw1.jpg"
});
</script>
Run Code Online (Sandbox Code Playgroud)
这是实际的页面: http://www.24framesdigital.com/bmw/webcast/250413/vod.html
现在,RTMP流的URL是什么?我试过了:
rtmp://www.24framesdigital.com/bmw/250413/vod.flv
rtmp://www.24framesdigital.com/bmw/webcast/250413/bmw/250413/vod.flv
rtmp://216.185.104.75/vod/bmw/250413/vod.flv
rtmp://216.185.104.75/bmw/250413/vod.flv
Run Code Online (Sandbox Code Playgroud)
......在其他几个人中间.没有工作.我正在使用curl来流式传输/下载视频:
curl rtmp://.../vod.flv -o vod.flv
Run Code Online (Sandbox Code Playgroud)
小智 7
curl -o vod.flv 'rtmp://216.185.104.75/vod playpath=bmw/250413/vod'
Run Code Online (Sandbox Code Playgroud)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3341k 0 3341k 0 0 97954 0 --:--:-- 0:00:34 --:--:-- 261k
男人的更多信息