<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Wowzawebrtcplayerjmu Wowza WebRTC Player example</title>
<script src="https://cdn.jsdelivr.net/gh/jemu51/Wowzawebrtcplayerjmu/src/wowzawebrtcplayerjmu.js"></script> // include palyer
</head>
<body>
<video id="video_element_id" autoplay playsinline muted controls></video>
</body>
<script>
let options = {
applicationName: "application name", //wowza application name
streamName: "stream name", //wowza stream name
wssUrl: "websocket url", //wowza server websocket url
videoElementId: "video_element_id", //A html5 video element's id in which the video will be played
};
let jmuWowZaPlayer = new Wowzawebrtcplayerjmu( options ); //instantiate the Wowzawebrtcplayerjmu class
jmuWowZaPlayer.init(); // play the video stream on the html5 video element ("video_element_id")
//To stop and replay same stream stop and reset the player first
//To stop
// if (jmuWowZaPlayer.peerConnection) {
// jmuWowZaPlayer.stop(); //stop the player
// jmuWowZaPlayer = undefined; //reset the player
// }
//Then init angain
//jmuWowZaPlayer.init();
</script>
</html>
-
Notifications
You must be signed in to change notification settings - Fork 0
jemu51/Wowzawebrtcplayerjmu
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Wowza webrtc stream player
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published