This commit is contained in:
Harvey Zack committed 2018-12-14 17:09:26 +08:00
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);