mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
添加挂载url后事件
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user