Browse Source

更新 'SRSWebRtcPlayer.ts'

Caner 3 years ago
parent
commit
9e94d83703
1 changed files with 1 additions and 3 deletions
  1. 1 3
      SRSWebRtcPlayer.ts

+ 1 - 3
SRSWebRtcPlayer.ts

@@ -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(() => {