mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 20:21:20 -08:00
add fetchStream
This commit is contained in:
1 parent
7264d0b3a3
commit
6cc89edcd9
10 files changed
+209
-54
No files matched your search
+7
-7
@@ -34,13 +34,13 @@
|
||||
<script src="../uncompiled/artplayer-plugin-flv.js"></script>
|
||||
<script src="./js/common.js"></script>
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?b6c9b8bafbf5fe7225160101dafbbc7d";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
// var _hmt = _hmt || [];
|
||||
// (function() {
|
||||
// var hm = document.createElement("script");
|
||||
// hm.src = "https://hm.baidu.com/hm.js?b6c9b8bafbf5fe7225160101dafbbc7d";
|
||||
// var s = document.getElementsByTagName("script")[0];
|
||||
// s.parentNode.insertBefore(hm, s);
|
||||
// })();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -31,10 +31,14 @@
|
||||
flv: function(video, url) {
|
||||
var flv = new Flv({
|
||||
mediaElement: video,
|
||||
url: url,
|
||||
url: file instanceof File ? file : url,
|
||||
});
|
||||
|
||||
flv.load();
|
||||
|
||||
this.on('destroy', () => {
|
||||
flv.destroy();
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user