ommit
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
This commit is contained in:
1 parent
cbb750a413
commit
497b9a2fc5
42 files changed
+945
-354
No files matched your search
@@ -88,8 +88,10 @@ function addSubtitleTrackToReactPlayer(
|
||||
const a = track.track;
|
||||
a.mode = "showing";
|
||||
});
|
||||
track.addEventListener("error", (e) => {
|
||||
console.error("Error loading subtitle track", e);
|
||||
track.addEventListener("error", () => {
|
||||
// Some servers advertise subtitle streams that cannot be delivered
|
||||
// as a text track; the video still plays and JASSUB handles image
|
||||
// subtitles separately.
|
||||
});
|
||||
|
||||
videoElem.appendChild(track);
|
||||
@@ -99,7 +101,7 @@ function addSubtitleTrackToReactPlayer(
|
||||
}
|
||||
}
|
||||
|
||||
export function VideoPlayer() {
|
||||
function VideoPlayer() {
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const navigate = useNavigate();
|
||||
const { history } = useRouter();
|
||||
@@ -357,8 +359,6 @@ export function VideoPlayer() {
|
||||
});
|
||||
}
|
||||
|
||||
console.log(mediaSource.subtitle);
|
||||
|
||||
registerPlayerActions({
|
||||
seekTo: (seconds: number) => {
|
||||
// A user seek wins over the pending transfer/resume target.
|
||||
@@ -639,9 +639,7 @@ export function VideoPlayer() {
|
||||
wasmUrl,
|
||||
modernWasmUrl,
|
||||
});
|
||||
jassubRenderer.ready.then(() => {
|
||||
console.log("JASSUB subtitle renderer is ready");
|
||||
});
|
||||
jassubRenderer.ready.then(() => undefined);
|
||||
} else if (
|
||||
mediaSource.subtitle.format === "subrip" ||
|
||||
mediaSource.subtitle.format === "vtt"
|
||||
|
||||
Reference in new issue
Block a user