This commit is contained in:
Harvey Zack committed 2018-11-06 15:19:30 +08:00
1 parent c80e623012
commit e66fefe4a2
15 files changed
+5033 -5026

No files matched your search

-1
View File
@@ -75,7 +75,6 @@ export default function eventInit(art, player) {
notice.show(`${i18n.get('Reconnect')}: ${player.reconnectTime}`);
});
} else {
art.isError = true;
art.isPlaying = false;
art.loading.hide();
art.controls.hide();
+8 -1
View File
@@ -1,5 +1,7 @@
import { instances } from '../utils';
export default function playMix(art, player) {
const { refs: { $video }, i18n, notice } = art;
const { refs: { $video }, i18n, notice, option: { mutex } } = art;
Object.defineProperty(player, 'play', {
value: () => {
@@ -10,6 +12,11 @@ export default function playMix(art, player) {
console.warn(err);
});
}
if (mutex) {
instances.forEach(item => item.player.pause());
}
notice.show(i18n.get('Play'));
art.emit('play', $video);
}