How to check if HTML5 audio has reached different errors

前端 未结 3 1908
傲寒
傲寒 2020-12-02 17:47

Specifically, if one of the 206 requests for audio fails and buffering stops, is there a way to detect that state? Or should I have to check if buffering stopped by comparin

3条回答
  •  旧时难觅i
    2020-12-02 18:11

    I think you can find your answer here w3schools at the end of page (Media Events block)

    probably onerror or onstalled or onreadystatechange

提交回复
热议问题