zhw2590582 / SubPlayer

SubPlayer is no longer maintained, please consider Aimu
https://aimu.app
MIT License
955 stars 200 forks source link

Uncaught TypeError in wfplayer.js #42

Open rjurden opened 3 years ago

rjurden commented 3 years ago

When opening a video, the following error occurs. The tool does not load the video in the player.

Uncaught TypeError: Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite. at t.value (wfplayer.js:8) at Tool.js:372 at Object.Be (react-dom.production.min.js:52) at $e (react-dom.production.min.js:52) at react-dom.production.min.js:53 at Cr (react-dom.production.min.js:100) at Or (react-dom.production.min.js:101) at react-dom.production.min.js:113 at Le (react-dom.production.min.js:292) at react-dom.production.min.js:50

zhw2590582 commented 3 years ago

Can you send me the video? laozhaochaguan@gmail.com

rjurden commented 3 years ago

This issue was resolved by putting the sample.json, sample.mp3 and sample.mp4 files in the root directory of the web server. The code breaks if the sample videos are not there.