mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
添加flv.js演示
This commit is contained in:
1 parent
c7c9e0a311
commit
8a9f70720a
11 files changed
+143
-33
No files matched your search
@@ -1,6 +1,5 @@
|
||||
export default function switchMix(art, player) {
|
||||
const {
|
||||
refs: { $video },
|
||||
i18n,
|
||||
notice,
|
||||
option,
|
||||
@@ -11,9 +10,7 @@ export default function switchMix(art, player) {
|
||||
if (url !== option.url) {
|
||||
const { isPlaying } = art;
|
||||
const { currentTime } = player;
|
||||
art.emit('beforeMountUrl', url);
|
||||
$video.src = player.mountUrl(url);
|
||||
art.emit('afterMountUrl', url);
|
||||
player.attachUrl(url);
|
||||
option.url = url;
|
||||
player.playbackRateRemove();
|
||||
player.aspectRatioRemove();
|
||||
|
||||
Reference in new issue
Block a user