mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
add fed hls/mp4 toggle
This commit is contained in:
parent
5751733250
commit
bcf081a493
3 changed files with 25 additions and 1 deletions
|
|
@ -1354,7 +1354,8 @@
|
|||
"close": "Got it"
|
||||
},
|
||||
"traffic": "{{used}} / {{limit}} High-speed Traffic • Resets in {{reset}}",
|
||||
"trafficExplanation": "Febbox gives you 100GB/month of high-speed traffic, the streams might buffer more after you've used up your quota. Depends on your internet speed and the quality of the stream."
|
||||
"trafficExplanation": "Febbox gives you 100GB/month of high-speed traffic, the streams might buffer more after you've used up your quota. Depends on your internet speed and the quality of the stream.",
|
||||
"useMp4": "Enable MP4 streams. May be faster outside of the U.S., but audio tracks cannot be changed."
|
||||
},
|
||||
"status": {
|
||||
"success": "success",
|
||||
|
|
|
|||
|
|
@ -520,6 +520,21 @@ export function FebboxSetup({
|
|||
})()}
|
||||
</>
|
||||
) : null}
|
||||
<div className="flex justify-between items-center gap-4 mt-6">
|
||||
<div className="my-3">
|
||||
<p className="max-w-[32rem] font-medium">
|
||||
{t("fedapi.setup.useMp4")}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<Toggle
|
||||
onClick={() =>
|
||||
preferences.setFebboxUseMp4(!preferences.febboxUseMp4)
|
||||
}
|
||||
enabled={preferences.febboxUseMp4}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</SettingsCard>
|
||||
<Modal id={exampleModal.id}>
|
||||
<ModalCard>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ export interface PreferencesStore {
|
|||
enableEmbedOrder: boolean;
|
||||
proxyTmdb: boolean;
|
||||
febboxKey: string | null;
|
||||
febboxUseMp4: boolean;
|
||||
debridToken: string | null;
|
||||
debridService: string;
|
||||
enableLowPerformanceMode: boolean;
|
||||
|
|
@ -55,6 +56,7 @@ export interface PreferencesStore {
|
|||
setEnableEmbedOrder(v: boolean): void;
|
||||
setProxyTmdb(v: boolean): void;
|
||||
setFebboxKey(v: string | null): void;
|
||||
setFebboxUseMp4(v: boolean): void;
|
||||
setdebridToken(v: string | null): void;
|
||||
setdebridService(v: string): void;
|
||||
setEnableLowPerformanceMode(v: boolean): void;
|
||||
|
|
@ -88,6 +90,7 @@ export const usePreferencesStore = create(
|
|||
enableEmbedOrder: false,
|
||||
proxyTmdb: false,
|
||||
febboxKey: null,
|
||||
febboxUseMp4: false,
|
||||
debridToken: null,
|
||||
debridService: "realdebrid",
|
||||
enableLowPerformanceMode: false,
|
||||
|
|
@ -188,6 +191,11 @@ export const usePreferencesStore = create(
|
|||
s.febboxKey = v;
|
||||
});
|
||||
},
|
||||
setFebboxUseMp4(v) {
|
||||
set((s) => {
|
||||
s.febboxUseMp4 = v;
|
||||
});
|
||||
},
|
||||
setdebridToken(v) {
|
||||
set((s) => {
|
||||
s.debridToken = v;
|
||||
|
|
|
|||
Loading…
Reference in a new issue