mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-06-28 17:44:32 +00:00
Firefox's navigator.mediaCapabilities.decodingInfo costs ~14 ms per call (out-of-process RDD decoder probe). Shaka Player calls it once per Variant in the DASH manifest while filtering supported variants, and YouTube manifests routinely have 1000+ variants, so player initialization stalls 15-20 s on Gecko-based browsers before the first SourceBuffer is added. Wrap decodingInfo to delegate "supported" checks to MediaSource.isTypeSupported (sub-ms on Firefox) with a per-MIME cache. DRM probes and non-media-source queries fall through to native. Wrapper is gated to Gecko UAs so Chromium and Safari are unaffected. Refs: https://github.com/shaka-project/shaka-player/issues/4775 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
28 lines
557 B
JavaScript
28 lines
557 B
JavaScript
import "@/utils/firefoxMediaCapabilitiesFix.js";
|
|
import { createApp } from "vue";
|
|
import router from "@/router/router.js";
|
|
import App from "./App.vue";
|
|
|
|
import { createI18n } from "vue-i18n";
|
|
import enLocale from "@/locales/en.json";
|
|
import "./app.css";
|
|
|
|
import("./registerServiceWorker");
|
|
|
|
const i18n = createI18n({
|
|
globalInjection: true,
|
|
legacy: false,
|
|
locale: "en",
|
|
fallbackLocale: "en",
|
|
messages: {
|
|
en: enLocale,
|
|
},
|
|
});
|
|
|
|
window.i18n = i18n;
|
|
|
|
const app = createApp(App);
|
|
app.use(i18n);
|
|
app.use(router);
|
|
app.mount("#app");
|