mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 12:14:46 -04:00
Sort qualites on android
This commit is contained in:
parent
a8d29b5b26
commit
0008aa95c2
@ -174,9 +174,11 @@ export const QualitiesMenu = (props: CustomMenu) => {
|
|||||||
/>
|
/>
|
||||||
{/* TODO: Support video tracks when the play mode is not hls. */}
|
{/* TODO: Support video tracks when the play mode is not hls. */}
|
||||||
{/* @ts-expect-error They forgot to type this. */}
|
{/* @ts-expect-error They forgot to type this. */}
|
||||||
{info?.videoTracks.map((x) => (
|
{info?.videoTracks
|
||||||
|
.sort((a: any, b: any) => b.height - a.height)
|
||||||
|
.map((x: any, i: number) => (
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
key={x.height}
|
key={i}
|
||||||
label={`${x.height}p`}
|
label={`${x.height}p`}
|
||||||
selected={video === x.height}
|
selected={video === x.height}
|
||||||
onSelect={() => {
|
onSelect={() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user