mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 19:51:20 -08:00
Fix some ie bug
This commit is contained in:
1 parent
b6d3bb505b
commit
105608ee25
4 files changed
+6
-4
No files matched your search
@@ -1308,7 +1308,7 @@
|
||||
value: function value() {
|
||||
var promise = $video.play();
|
||||
|
||||
if (promise.then) {
|
||||
if (promise && promise.then) {
|
||||
promise.then().catch(function (err) {
|
||||
notice.show = err;
|
||||
throw err;
|
||||
@@ -3722,6 +3722,7 @@
|
||||
return fetch(url).then(function (response) {
|
||||
return response.arrayBuffer();
|
||||
}).then(function (buffer) {
|
||||
if (!window.TextDecoder) return;
|
||||
var decoder = new TextDecoder(opt.encoding || subtitle.encoding);
|
||||
var text = decoder.decode(buffer);
|
||||
|
||||
@@ -4850,7 +4851,7 @@
|
||||
}, {
|
||||
key: "build",
|
||||
get: function get() {
|
||||
return '1638500312253';
|
||||
return '1638513681132';
|
||||
}
|
||||
}, {
|
||||
key: "config",
|
||||
|
||||
Reference in new issue
Block a user