|
|
@@ -6,8 +6,8 @@ import MD5 from 'js-md5'
|
|
|
class WebRtcPlayer {
|
|
|
private Peer: any
|
|
|
private TIMER: any
|
|
|
- constructor(option: { HOST: string; TOKEN: string; UUID: string; PROFILE: number; PORT: number; DOM: HTMLVideoElement; starttime?: number; endtime?: number }) {
|
|
|
- this.initWebRtc(option.HOST, option.PORT, option.TOKEN, option.UUID, option.PROFILE, option.DOM, option.starttime, option.endtime).then(res => {
|
|
|
+ constructor(option: { HOST: string; TOKEN: string; UUID: string; PROFILE: number; PORT: number; DOM: HTMLVideoElement; STIME?: number; ETIME?: number }) {
|
|
|
+ this.initWebRtc(option.HOST, option.PORT, option.TOKEN, option.UUID, option.PROFILE, option.DOM, option.STIME, option.ETIME).then(res => {
|
|
|
this.Peer = res
|
|
|
}).catch(() => {
|
|
|
this.Peer = null
|