commit
f8514ba789
|
|
@ -436,6 +436,10 @@ class DPlayer {
|
|||
|
||||
// video download error: an error occurs
|
||||
this.on('error', () => {
|
||||
if (!this.video.error) {
|
||||
// Not a video load error, may be poster load failed, see #307
|
||||
return
|
||||
}
|
||||
this.tran && this.notice && this.type !== 'webtorrent' & this.notice(this.tran('Video load failed'), -1);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class User {
|
|||
};
|
||||
this.default = {
|
||||
opacity: 0.7,
|
||||
volume: player.options.volume || 0.7,
|
||||
volume: player.options.hasOwnProperty('volume') ? player.options.volume : 0.7,
|
||||
unlimited: (player.options.danmaku && player.options.danmaku.unlimited ? 1 : 0) || 0,
|
||||
danmaku: 1,
|
||||
subtitle: 1
|
||||
|
|
@ -38,4 +38,4 @@ class User {
|
|||
}
|
||||
}
|
||||
|
||||
export default User;
|
||||
export default User;
|
||||
|
|
|
|||
Loading…
Reference in New Issue