Skip to content

Commit

Permalink
Use videojs in fluid mode
Browse files Browse the repository at this point in the history
Fixes #85
  • Loading branch information
9at8 committed Sep 16, 2021
1 parent 0e7aabd commit 3efc36b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function main() {
const oldPlayer = getPlayer();
const container = oldPlayer?.parentElement;

const video = $("video", { class: "video-js", style: "width: 100%" });
const video = $("video", { class: "video-js" });

oldPlayer?.remove();
container?.append(video);
Expand All @@ -55,6 +55,7 @@ async function main() {
sources:
oldPlayer == null ? [] : [{ src: oldPlayer.getAttribute("src") ?? "" }],
playbackRates: [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 2.75, 3],
fluid: true,
}).ready(function () {
this.hotkeys();

Expand Down

0 comments on commit 3efc36b

Please sign in to comment.