mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 00:56:16 -08:00
4.3.4
This commit is contained in:
1 parent
2a5913c658
commit
54882b4e25
10 files changed
+22
-18
No files matched your search
@@ -6,6 +6,8 @@ export default function switchMix(art) {
|
||||
function switchUrl(url, name, currentTime) {
|
||||
return new Promise((resolve) => {
|
||||
if (url === art.url) return resolve(url);
|
||||
const { playing } = art;
|
||||
art.pause();
|
||||
URL.revokeObjectURL(art.url);
|
||||
art.url = url;
|
||||
art.once('video:canplay', () => {
|
||||
@@ -15,7 +17,7 @@ export default function switchMix(art) {
|
||||
art.autoSize = option.autoSize;
|
||||
art.currentTime = currentTime;
|
||||
art.notice.show = '';
|
||||
if (art.playing) {
|
||||
if (playing) {
|
||||
art.play();
|
||||
}
|
||||
if (name) {
|
||||
|
||||
Reference in new issue
Block a user