优化文档

This commit is contained in:
Harvey committed 2019-11-28 11:26:19 +08:00
1 parent 0cf455ced3
commit 54e9fb9ae2
10 files changed
+163 -287

No files matched your search

+5 -4
View File
@@ -656,7 +656,6 @@
miniProgressBar: 'boolean',
localVideo: 'boolean',
localSubtitle: 'boolean',
autoPip: 'boolean',
networkMonitor: 'boolean',
plugins: ['function'],
whitelist: ['string|function|regexp'],
@@ -997,9 +996,11 @@
var typeCallback = customType[typeName];
if (typeName && typeCallback) {
art.loading.show = true;
typeCallback.call(art, $video, url, art);
art.emit('customType', typeName);
sleep().then(function () {
art.loading.show = true;
typeCallback.call(art, $video, url, art);
art.emit('customType', typeName);
});
} else {
$video.src = url;
art.option.url = url;