mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add media input methods.
This commit is contained in:
parent
88886972e2
commit
d546c5f65f
@ -373,6 +373,14 @@
|
||||
this.connection.setVideo(video)
|
||||
}
|
||||
|
||||
public addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender {
|
||||
return this.connection.webrtc.addTrack(track, ...streams)
|
||||
}
|
||||
|
||||
public removeTrack(sender: RTCRtpSender) {
|
||||
this.connection.webrtc.removeTrack(sender)
|
||||
}
|
||||
|
||||
public sendUnicast(receiver: string, subject: string, body: any) {
|
||||
this.connection.websocket.send(EVENT.SEND_UNICAST, { receiver, subject, body })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user