aboutsummaryrefslogtreecommitdiff
path: root/source/client/remote_user.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/client/remote_user.ts')
-rw-r--r--source/client/remote_user.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/client/remote_user.ts b/source/client/remote_user.ts
index 9e33a09..2f7c751 100644
--- a/source/client/remote_user.ts
+++ b/source/client/remote_user.ts
@@ -1,10 +1,9 @@
import { servers } from "./index.ts"
import { log } from "./logger.ts"
import { Room } from "./room.ts"
+import { TrackHandle } from "./track_handle.ts";
import { User } from "./user.ts"
-
-
export class RemoteUser extends User {
peer: RTCPeerConnection
negotiation_busy = false
@@ -19,7 +18,7 @@ export class RemoteUser extends User {
this.peer.ontrack = ev => {
const t = ev.track
log("media", "remote track", t)
- this.add_track(t)
+ this.add_track(new TrackHandle(t))
}
this.peer.onnegotiationneeded = async () => {
log("webrtc", "negotiation needed")
@@ -30,7 +29,6 @@ export class RemoteUser extends User {
}
}
-
async offer() {
this.negotiation_busy = true
const offer_description = await this.peer.createOffer()