0
我試圖讓樹莓派流到crtmpserver,然後從那裏到JWplayer的網頁。Raspberry Pi> CRTMPServer> JWplayer
我能夠成功地發送視頻與此有關crtmpserver:
raspivid -t 0 -w 960 -h 540 -fps 25 -b 500000室顫-o - | ffmpeg -i - -acodec aac -ac 2 -strict experimental -ab 160k -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1000k -f rtsp -metadata title = teststream rtsp:/ /192.168.1.20:5544/flvplayback
但我有麻煩的使用,這是我的HTML代碼jwplayer從crtmpserver觀看流:
<script type="text/javascript">
jwplayer("myElement-teststream").setup({
playlist: [{
sources:[{
file: 'rmtp://192.168.1.20:1935/live/teststream"
}]
}],
height: 1080,
primary: 'flash',
width: 1920
});
</script>
我缺少什麼?
[使用jwplayer 6.11視頻在iPad上不能播放]的可能重複(HTTP:/ /stackoverflow.com/questions/27620483/using-jwplayer-6-11-video-not-play-on-ipad) –