Skip to content

Commit

Permalink
fix issues with invidious video player
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfox committed Nov 17, 2024
1 parent 5ac9e62 commit f0012c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/invidious_routes/dashManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ dashManifest.get("/:videoId", async (c) => {
c.header("content-type", "application/dash+xml");

if (videoInfo.streaming_data) {
// Invidious force quality only support one video codec at a time, using av01.
// video.js only support MP4 not WEBM
videoInfo.streaming_data.adaptive_formats = videoInfo
.streaming_data.adaptive_formats
.filter((i) => i.mime_type.includes("mp4"));
.filter((i) => i.mime_type.includes("mp4") && i.mime_type.includes("av01"));

const player_response = videoInfo.page[0];
// TODO: fix include storyboards in DASH manifest file
Expand Down

0 comments on commit f0012c8

Please sign in to comment.