New WebRTC and Video Player

This commit is contained in:
2025-10-02 19:10:49 +05:30
parent c452853160
commit c4e868490e
2 changed files with 5 additions and 3 deletions
+1 -3
View File
@@ -125,8 +125,6 @@ const {
</div>
<script>
import { WebRTCPlayer } from "@eyevinn/webrtc-player";
document.addEventListener("DOMContentLoaded", () => {
const videoCardEl = document.getElementById("video-card");
const videoEl = document.getElementById("live-video");
@@ -149,7 +147,7 @@ const {
async function startPlayer() {
try {
if (videoEl)
player = new WebRTCPlayer({
player = new window.WebRTCPlayer({
video: videoEl as HTMLVideoElement,
type: "whep",
statsTypeFilter: "^candidate-*|^inbound-rtp",