mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
添加更多错误机制
This commit is contained in:
1 parent
eb879d3e2d
commit
f6c236c260
8 files changed
+32
-19
No files matched your search
+1
-1
@@ -93,7 +93,7 @@ export default class Player {
|
||||
|
||||
this.art.on('video:error', () => {
|
||||
if (this.reconnectTime < this.maxReconnectTime) {
|
||||
sleep(100).then(() => {
|
||||
sleep(1000).then(() => {
|
||||
this.reconnectTime++;
|
||||
$video.src = option.url;
|
||||
notice.show(`${i18n.get('Reconnect')}: ${this.reconnectTime}`);
|
||||
|
||||
Reference in new issue
Block a user