diff --git a/.github/workflows/build-mobile-comment.yml b/.github/workflows/build-mobile-comment.yml index 1d11fda..23cf70c 100644 --- a/.github/workflows/build-mobile-comment.yml +++ b/.github/workflows/build-mobile-comment.yml @@ -50,10 +50,10 @@ jobs: - name: Rename apk run: cd apps/expo && mv android/app/build/outputs/apk/release/app-release.apk android/app/build/outputs/apk/release/movie-web.apk - - name: Comment on pull request - uses: thollander/actions-comment-pull-request@v2 - with: - filePath: ./apps/expo/android/app/build/outputs/apk/release/movie-web.apk + # - name: Comment on pull request + # uses: thollander/actions-comment-pull-request@v2 + # with: + # filePath: ./apps/expo/android/app/build/outputs/apk/release/movie-web.apk - name: Upload movie-web.apk as artifact uses: actions/upload-artifact@v4 @@ -103,10 +103,10 @@ jobs: cd ios/build/Build/Products/Release-iphoneos zip -r ../../../movie-web.ipa Payload - - name: Comment on pull request - uses: thollander/actions-comment-pull-request@v2 - with: - filePath: ./apps/expo/ios/build/movie-web.ipa + # - name: Comment on pull request + # uses: thollander/actions-comment-pull-request@v2 + # with: + # filePath: ./apps/expo/ios/build/movie-web.ipa - name: Upload movie-web.ipa as artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.yml index 64771ec..1207d69 100644 --- a/.github/workflows/build-mobile.yml +++ b/.github/workflows/build-mobile.yml @@ -46,11 +46,11 @@ jobs: - name: Rename apk run: cd apps/expo && mv android/app/build/outputs/apk/release/app-release.apk android/app/build/outputs/apk/release/movie-web.apk - - name: Comment on pull request - if: github.event_name == 'pull_request' - uses: thollander/actions-comment-pull-request@v2 - with: - filePath: ./apps/expo/android/app/build/outputs/apk/release/movie-web.apk + # - name: Comment on pull request + # if: github.event_name == 'pull_request' + # uses: thollander/actions-comment-pull-request@v2 + # with: + # filePath: ./apps/expo/android/app/build/outputs/apk/release/movie-web.apk - name: Upload movie-web.apk as artifact uses: actions/upload-artifact@v4 @@ -95,11 +95,11 @@ jobs: cd ios/build/Build/Products/Release-iphoneos zip -r ../../../movie-web.ipa Payload - - name: Comment on pull request - if: github.event_name == 'pull_request' - uses: thollander/actions-comment-pull-request@v2 - with: - filePath: ./apps/expo/ios/build/movie-web.ipa + # - name: Comment on pull request + # if: github.event_name == 'pull_request' + # uses: thollander/actions-comment-pull-request@v2 + # with: + # filePath: ./apps/expo/ios/build/movie-web.ipa - name: Upload movie-web.ipa as artifact uses: actions/upload-artifact@v4 diff --git a/apps/expo/src/components/player/AudioTrackSelector.tsx b/apps/expo/src/components/player/AudioTrackSelector.tsx new file mode 100644 index 0000000..a5c354b --- /dev/null +++ b/apps/expo/src/components/player/AudioTrackSelector.tsx @@ -0,0 +1,70 @@ +import { Pressable, ScrollView, View } from "react-native"; +import Modal from "react-native-modal"; +import { MaterialCommunityIcons } from "@expo/vector-icons"; + +import colors from "@movie-web/tailwind-config/colors"; + +import { useBoolean } from "~/hooks/useBoolean"; +import { useAudioTrackStore } from "~/stores/audio"; +import { usePlayerStore } from "~/stores/player/store"; +import { Button } from "../ui/Button"; +import { Text } from "../ui/Text"; +import { Controls } from "./Controls"; + +export const CaptionsSelector = () => { + const tracks = usePlayerStore((state) => state.interface.audioTracks); + + const setSelectedAudioTrack = useAudioTrackStore( + (state) => state.setSelectedAudioTrack, + ); + + const { isTrue, on, off } = useBoolean(); + + if (!tracks?.length) return null; + + return ( + + +