Skip to content

Commit c461711

Browse files
author
aeinstein
committed
readme update
1 parent 48ae718 commit c461711

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

readme.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,17 @@ This project consists of 2 parts.
3232
<script>
3333
const videoElement = document.getElementById('videoElement');
3434
35-
webrtmp.attachMediaElement(videoElement);
35+
const rtmp_player = webrtmpjs.createWebRTMP();
3636
37-
webrtmp.open(document.location.host, 9001).then(()=>{ // Host, Port of WebRTMP Proxy
38-
webrtmp.connect("demo").then(()=>{ // Application name
39-
webrtmp.play("your streanname").then(()=>{ // Stream name
37+
rtmp_player.attachMediaElement(videoElement);
38+
39+
rtmp_player.open(document.location.host, 9001).then(()=>{ // Host, Port of WebRTMP Proxy
40+
rtmp_player.connect("demo").then(()=>{ // Application name
41+
rtmp_player.play("your streanname").then(()=>{ // Stream name
4042
console.log("playing");
4143
})
4244
})
4345
})
44-
4546
</script>
4647
```
4748

0 commit comments

Comments
 (0)