mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 10:01:20 -08:00
调整目录
This commit is contained in:
1 parent
f63ae33be7
commit
52458bb95e
7 files changed
+60
-17
No files matched your search
@@ -346,15 +346,24 @@
|
||||
classCallCheck(this, CreatMediaSource);
|
||||
|
||||
this.flv = flv;
|
||||
this.mediaSource = new MediaSource();
|
||||
var url = URL.createObjectURL(this.mediaSource);
|
||||
flv.events.destroyEvents.push(function () {
|
||||
URL.revokeObjectURL(url);
|
||||
});
|
||||
flv.mediaElement.src = url;
|
||||
this.creatUrl();
|
||||
this.eventBind();
|
||||
}
|
||||
|
||||
createClass(CreatMediaSource, [{
|
||||
key: "creatUrl",
|
||||
value: function creatUrl() {
|
||||
var _this$flv = this.flv,
|
||||
mediaElement = _this$flv.mediaElement,
|
||||
destroyEvents = _this$flv.events.destroyEvents;
|
||||
this.mediaSource = new MediaSource();
|
||||
var url = URL.createObjectURL(this.mediaSource);
|
||||
destroyEvents.push(function () {
|
||||
URL.revokeObjectURL(url);
|
||||
});
|
||||
mediaElement.src = url;
|
||||
}
|
||||
}, {
|
||||
key: "eventBind",
|
||||
value: function eventBind() {
|
||||
var _this = this;
|
||||
|
||||
Reference in new issue
Block a user