Skip to content

Commit 13e211a

Browse files
authored
Update README.md
1 parent e92ef83 commit 13e211a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const pc = new RTCPeerConnection({ bundlePolicy: "max-bundle" });
1717
//Send all tracks
1818
for (const track of stream.getTracks()) {
1919
//You could add simulcast too here
20-
pc.addTrack(track, { 'direction': 'sendonly' });
20+
pc.addTransceiver(track, { 'direction': 'sendonly' });
2121
}
2222
2323
//Create whip client

0 commit comments

Comments
 (0)