mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 13:21:20 -08:00
存储实例集合
This commit is contained in:
1 parent
e66fefe4a2
commit
844d118b80
10 files changed
+31
-15
No files matched your search
@@ -1,5 +1,3 @@
|
||||
import { instances } from '../utils';
|
||||
|
||||
export default function playMix(art, player) {
|
||||
const { refs: { $video }, i18n, notice, option: { mutex } } = art;
|
||||
|
||||
@@ -14,7 +12,9 @@ export default function playMix(art, player) {
|
||||
}
|
||||
|
||||
if (mutex) {
|
||||
instances.forEach(item => item.player.pause());
|
||||
art.constructor.instances
|
||||
.filter(item => item !== art)
|
||||
.forEach(item => item.player.pause());
|
||||
}
|
||||
|
||||
notice.show(i18n.get('Play'));
|
||||
|
||||
Reference in new issue
Block a user