|
@ -84,7 +84,7 @@ export class HttpLivePlayer { |
|
|
|
|
|
|
|
|
if (!url) return Promise.reject("获取 url 失败!"); |
|
|
if (!url) return Promise.reject("获取 url 失败!"); |
|
|
|
|
|
|
|
|
return; |
|
|
this.url = url; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
destroy() { |
|
|
destroy() { |
|
@ -102,6 +102,8 @@ export class HttpLivePlayer { |
|
|
|
|
|
|
|
|
this.lastDecodedFrames = null; |
|
|
this.lastDecodedFrames = null; |
|
|
|
|
|
|
|
|
|
|
|
console.log(this.url); |
|
|
|
|
|
|
|
|
if (!this.url) return; |
|
|
if (!this.url) return; |
|
|
|
|
|
|
|
|
this.player = flvJs.createPlayer( |
|
|
this.player = flvJs.createPlayer( |
|
|