langhuihui / jessibuca

Jessibuca是一款开源的纯H5直播流播放器
https://jessibuca.com
GNU General Public License v3.0
2.22k stars 415 forks source link

drop buffer / skip frames? #157

Open DLLDev opened 2 years ago

DLLDev commented 2 years ago

im using jessibuca for live streaming over ws-flv.

sometimes, at least due overload on the encoding side the video stream on the player side starts lagging behind (more and more).

to be sure that the player laggs behind i used the following code to pause and resume (play) the stream again:

 jessibuca.pause().then(() => {
                console.log('pause success')
                jessibuca.play().then(() => {}).catch((e) => {})
            }).catch((e) => {
                console.log('pause error', e);
            })

that confirmed the issue.

is there a way to skip / drop the buffer / frames with jessibuca?