添加挂载url后事件

This commit is contained in:
Harvey Zack committed 2018-11-24 14:01:33 +08:00
1 parent 057bfb06c7
commit 9c4daf3c1d
6 files changed
+14 -11

No files matched your search

@@ -1,5 +1,5 @@
import { errorHandle, getExt } from '../utils';
import config from '../config';
import { errorHandle, getExt } from './utils';
import config from './config';
export default class Mse {
constructor(art) {
@@ -28,5 +28,6 @@ export default function attrInit(art, player) {
sleep().then(() => {
art.emit('beforeMountUrl', option.url);
$video.src = player.mountUrl(option.url);
art.emit('afterMountUrl', option.url);
});
}
@@ -13,6 +13,7 @@ export default function switchMix(art, player) {
const { currentTime } = player;
art.emit('beforeMountUrl', url);
$video.src = player.mountUrl(url);
art.emit('afterMountUrl', url);
option.url = url;
player.playbackRateRemove();
player.aspectRatioRemove();