zhw2590582 / FlvPlayer

:lollipop: FlvPlayer.js is a JavaScript player for decode flv to the canvas
https://flvplayer.js.org
MIT License
306 stars 83 forks source link

ws flv 流,用flv.js可以正常播放,如果用flvPlayer canvas播放器会空白,但是流正常 #16

Closed 1032740078 closed 5 years ago

1032740078 commented 5 years ago

Expected behaviour

正常播放ws flv视频

Actual behaviour

播放器空白,无法正常播放,流正常

Steps to reproduce

Environment

Console errors (if any)

image

Link to where the bug is happening

zhw2590582 commented 5 years ago

profile是high,可以换个解码器试试

1032740078 commented 5 years ago

个人资料是高,可以换个解码器试试

换成flvplayer-decoder-multiple.js后,canvas只显示第一帧的画面,然后就不播放了,画面不动了 image

1032740078 commented 5 years ago

这是我写的源码

image

zhw2590582 commented 5 years ago

试下把hasAudio关闭,flvplayer-decoder-multiple.js解码效果不是很好,正在找新的解码器,或者可以的话,在服务器端把flvprofile转为baseline,再用flvplayer-decoder-baseline.js

1032740078 commented 5 years ago

试下把hasAudio关闭,flvplayer-decoder-multiple.js解码效果不是很好,正在找新的解码器,或者可以的话,在服务器端把flvprofile转为baseline,再用flvplayer-decoder-baseline.js

好的,谢谢你