mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
update
This commit is contained in:
1 parent
f2658673dc
commit
ad2aafe07f
8 files changed
+16
-3
No files matched your search
@@ -11,6 +11,10 @@ class Flv extends Emitter {
|
||||
this.mediaSource = new CreatMediaSource(this);
|
||||
}
|
||||
|
||||
load() {
|
||||
console.log(this);
|
||||
}
|
||||
|
||||
destroy() {
|
||||
console.log(this);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ function artplayerPluginFlv(art) {
|
||||
flv,
|
||||
init: (mediaElement, url) => {
|
||||
flv = new Flv(mediaElement, url);
|
||||
flv.load();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ export default function attachUrlMix(art, player) {
|
||||
const typeName = type || getExt(videoUrl);
|
||||
const typeCallback = customType[typeName];
|
||||
if (typeName && typeCallback) {
|
||||
art.loading.show();
|
||||
art.emit('beforeCustomType', typeName);
|
||||
typeCallback.call(art, $video, videoUrl, art);
|
||||
art.emit('afterCustomType', typeName);
|
||||
|
||||
Reference in new issue
Block a user