New WebRTC and Video Player
This commit is contained in:
1 parent
c452853160
commit
c4e868490e
2 files changed
+5
-3
No files matched your search
@@ -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