mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:33:26 +00:00
chore: add selector to player controls
This commit is contained in:
@@ -11,7 +11,7 @@ import { Button } from "../ui/Button";
|
|||||||
import { Text } from "../ui/Text";
|
import { Text } from "../ui/Text";
|
||||||
import { Controls } from "./Controls";
|
import { Controls } from "./Controls";
|
||||||
|
|
||||||
export const CaptionsSelector = () => {
|
export const AudioTrackSelector = () => {
|
||||||
const tracks = usePlayerStore((state) => state.interface.audioTracks);
|
const tracks = usePlayerStore((state) => state.interface.audioTracks);
|
||||||
|
|
||||||
const setSelectedAudioTrack = useAudioTrackStore(
|
const setSelectedAudioTrack = useAudioTrackStore(
|
||||||
|
@@ -3,6 +3,7 @@ import { TouchableOpacity, View } from "react-native";
|
|||||||
|
|
||||||
import { usePlayerStore } from "~/stores/player/store";
|
import { usePlayerStore } from "~/stores/player/store";
|
||||||
import { Text } from "../ui/Text";
|
import { Text } from "../ui/Text";
|
||||||
|
import { AudioTrackSelector } from "./AudioTrackSelector";
|
||||||
import { CaptionsSelector } from "./CaptionsSelector";
|
import { CaptionsSelector } from "./CaptionsSelector";
|
||||||
import { Controls } from "./Controls";
|
import { Controls } from "./Controls";
|
||||||
import { ProgressBar } from "./ProgressBar";
|
import { ProgressBar } from "./ProgressBar";
|
||||||
@@ -60,6 +61,7 @@ export const BottomControls = () => {
|
|||||||
<SeasonSelector />
|
<SeasonSelector />
|
||||||
<CaptionsSelector />
|
<CaptionsSelector />
|
||||||
<SourceSelector />
|
<SourceSelector />
|
||||||
|
<AudioTrackSelector />
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user