ffmpeg 视频播放器

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>

你可能感兴趣的:(ffmpeg 视频播放器)