File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments