New WebRTC and Video Player
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user