ffmpeg 视频播放器

原创
2014/04/09 15:54
阅读数 224

ffmpeg -re -i 1.mp4 -c copy -f flv rtmp://localhost1935/myapp/stream

<?xml version="1.0"?>

<cross-domain-policy>
        <allow-access-from domain="*" />
</cross-domain-policy> 

crossdomain.xml 


hls.html

<!DOCTYPE html>
<html><head><title>HLSProvider/JWPlayer6 sample page</title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
</head>
<body style="color: Black; background-color: White;" link="Blue" vlink="Purple">


<big style="font-weight: bold;"><big><code> HLSProvider/JWPlayer6 sample page </code></big></big><br>


<div style="width: 640px; height: 360px;" id="player"></div>
<script type="text/javascript" src="jwplayer6/jwplayer.js"></script>
<script type="text/javascript">


jwplayer("player").setup({
playlist: [{
file:'http://10.235.160.66/stream.m3u8',
provider:'jwplayer6/HLSProvider6.swf',
type:'hls',
}],
width: 640,
height: 480,
primary: "flash"
});


</script>
</div>
</body></html>

展开阅读全文
打赏
0
1 收藏
分享
加载中
更多评论
打赏
0 评论
1 收藏
0
分享
返回顶部
顶部