Skip to content

Commit

Permalink
Added reserve link for player.
Browse files Browse the repository at this point in the history
  • Loading branch information
yumata committed Oct 31, 2023
1 parent 6c4a02c commit dea58e2
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions app.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -10344,15 +10344,18 @@
if (msg.indexOf('EMPTY SRC') == -1) {
if (error.code == 3) {
listener$d.send('error', {
error: Lang.translate('player_error_one')
error: Lang.translate('player_error_one'),
fatal: true
});
} else if (error.code == 4) {
listener$d.send('error', {
error: Lang.translate('player_error_two')
error: Lang.translate('player_error_two'),
fatal: true
});
} else if (typeof error.code !== 'undefined') {
listener$d.send('error', {
error: 'code [' + error.code + '] details [' + msg + ']'
error: 'code [' + error.code + '] details [' + msg + ']',
fatal: true
});
}
}
Expand Down Expand Up @@ -11004,12 +11007,14 @@
load$2(src);
} else {
listener$d.send('error', {
error: 'details [' + data.details + '] fatal [' + data.fatal + ']'
error: 'details [' + data.details + '] fatal [' + data.fatal + ']',
fatal: data.fatal
});
}
} else {
listener$d.send('error', {
error: 'details [' + data.details + '] fatal [' + data.fatal + ']'
error: 'details [' + data.details + '] fatal [' + data.fatal + ']',
fatal: data.fatal
});
}
});
Expand Down Expand Up @@ -14232,7 +14237,15 @@
/** Ошибка при попытки возпроизвести */

PlayerVideo.listener.follow('error', function (e) {
if (work) PlayerInfo.set('error', e.error);
if (work) {
PlayerInfo.set('error', e.error);

if (e.fatal && work.url_reserve) {
PlayerVideo.destroy(true);
PlayerVideo.url(work.url_reserve, true);
delete work.url_reserve;
}
}
});
PlayerVideo.listener.follow('translate', function (e) {
PlayerPanel.updateTranslate(e.where, e.translate);
Expand Down

0 comments on commit dea58e2

Please sign in to comment.