mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -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) => {
|
||||
try {
|
||||
if (value) {
|
||||
await document.body.requestFullscreen();
|
||||
await document.body.requestFullscreen({
|
||||
navigationUI: "hide",
|
||||
});
|
||||
set(privateFullscreen, true);
|
||||
await screen.orientation.lock("landscape");
|
||||
} 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()),
|
||||
width: parse::<u32>(&v["Width"]).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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user