mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
Fix variable bitrate videos
This commit is contained in:
parent
039c644453
commit
206466f9cc
@ -55,7 +55,9 @@ export const fullscreenAtom = atom(
|
|||||||
async (_, set, value: boolean) => {
|
async (_, set, value: boolean) => {
|
||||||
try {
|
try {
|
||||||
if (value) {
|
if (value) {
|
||||||
await document.body.requestFullscreen();
|
await document.body.requestFullscreen({
|
||||||
|
navigationUI: "hide",
|
||||||
|
});
|
||||||
set(privateFullscreen, true);
|
set(privateFullscreen, true);
|
||||||
await screen.orientation.lock("landscape");
|
await screen.orientation.lock("landscape");
|
||||||
} else {
|
} else {
|
||||||
|
@ -95,7 +95,8 @@ pub async fn identify(path: String) -> Result<MediaInfo, std::io::Error> {
|
|||||||
quality: Quality::from_height(parse::<u32>(&v["Height"]).unwrap()),
|
quality: Quality::from_height(parse::<u32>(&v["Height"]).unwrap()),
|
||||||
width: parse::<u32>(&v["Width"]).unwrap(),
|
width: parse::<u32>(&v["Width"]).unwrap(),
|
||||||
height: parse::<u32>(&v["Height"]).unwrap(),
|
height: parse::<u32>(&v["Height"]).unwrap(),
|
||||||
bitrate: parse::<u32>(&v["BitRate"]).unwrap(),
|
bitrate: parse::<u32>(&v["BitRate"])
|
||||||
|
.unwrap_or(parse(&general["OverallBitRate"]).unwrap()),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
audios: output["media"]["track"]
|
audios: output["media"]["track"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user