|
|
@@ -1,5 +1,3 @@
|
|
|
-import { number } from "echarts"
|
|
|
-
|
|
|
/**
|
|
|
* srs webrtc palyer
|
|
|
* auth Caner
|
|
|
@@ -7,7 +5,7 @@ import { number } from "echarts"
|
|
|
class WebRtcPlayer {
|
|
|
private Peer: any
|
|
|
private TIMER: any
|
|
|
- constructor(option = { HOST: '', TOKEN: '', UUID: '', PROFILE: number, PORT: number, DOM: HTMLElement }) {
|
|
|
+ constructor(option: { HOST: string, TOKEN: string, UUID: string, PROFILE: number, PORT: number, DOM: HTMLElement }) {
|
|
|
this.initWebRtc(option.HOST, option.PORT, option.TOKEN, option.UUID, option.PROFILE, option.DOM).then(res => {
|
|
|
this.Peer = res
|
|
|
}).catch(() => {
|