Questions tagged [expo-av]

173 questions
1
vote
1 answer

'Media Format' for '.caf' file in Amazon Transcribe

I have a React Native (Expo) app which captures audio using the expo-av library. It then uploads the audio file to Amazon S3, and then Transcribes that in Amazon Transcribe. For Android , i save the audio as a '.m4a' file, and call the Amazon…
Chakra
  • 2,525
  • 8
  • 43
  • 82
1
vote
0 answers

Expo AV audio recorder failing to record on iOS / iPhone

In my app, I'm using Expo-AV to record audio which works fine on Android, but not on iPhone. I get this error when I try to record: Prepare encountered an error: Error Domain=NSOSStatusErrorDomain Code=561145203 "(null)" async startRecordingAudio()…
Khaja Nizamuddin
  • 167
  • 1
  • 2
  • 9
1
vote
0 answers

Android tv box (TX3 mini) run app without connecting display

I am trying to use my android tv box (TX3 mini) like a radio. The app I build using react native and expo work and the audio does play when the app is in the background. The audio is coming through AV port and not through HDMI. However when I unplug…
Ahmed
  • 33
  • 4
1
vote
0 answers

const source = { uri: audioUrl } can't find my local file

I use expo-av and want to use this: const source = { uri: audioUrl } When I try to add network URL, it works, but it can't find my local file. // Don't work { uri: "./assets/040.wav" } // Work const source = {…
1
vote
0 answers

Is there a way to make a custom control component for expo-av video?

I am trying to reproduce on React Native the following player that I made on a wireframe software. So I have started using the Video component of the expo-av library but I have found no way to control play/pause, as well as the current millis…
R3D34THR4Y
  • 51
  • 6
1
vote
2 answers

React Native/Firebase/Expo Audio - Cancel loadAsync after download starts and user navigates away from page

I am having trouble cancelling loadAsync when a user navigates away from my page. I have tried to use a cleanup function on useEffect but since the soundObject hasn't loaded yet it will give me an error since soundObject equals null. I have also…
0
votes
0 answers

How to add a press event to the expo-av Video component in React Native

I have a series of videos in my app and each of them has a progress bar. I want to pause the progress bar on press, as well as pause the video itself. Currently, if the Video component is playing and the user presses it, the video is paused (and…
0
votes
0 answers

Expo AV Audio Recording with Youtube Video In Background Audio Balance Issue - React Native

I've got a really unique use case that I've been struggling with. I've been using Audio expo-av and a react-native-youtube-iframe or webview to play a video and record audio at the same time. You are probably all thinking... why would someone need…
0
votes
0 answers

background runtime with expo av audio

Please provide the following: SDK Version: 48 Platforms(Android/iOS/web/all): Android Expo Audio / expo AV I have a problem only on Android. I set up a sound with a link to an audio stream, when it goes to the background it just plays for 4 minutes…
0
votes
0 answers

Multiple Sound Playback and VirtualizedList Warning in React Native Expo-AV

I'm working on a React Native app that includes a TikTok-like feed with images and sound. The core components involved are a FlatList for displaying posts and a PagerView for swiping through multiple images within each post. The problem arises when…
0
votes
0 answers

expo-av Player does not exist {code: 'E_AUDIO_NOPLAYER'} And {code: 'E_LOAD_ERROR}

I have multiple audio files that my audioplayer plays one by one. At times, especially after playing them 2 or 3 times, the audio pauses in the middle. When I try to press the play/pause button, I receive an error alert displaying either…
artsnr
  • 952
  • 1
  • 10
  • 27
0
votes
0 answers

Restore unfinished Audio.Recording from Expo AV

I am working on functionality where users are recording long audio files. They might pause/resume the recording multiple times during a session. The API says that we should stop and unload the recording before playing it. I am worried that they will…
cip123
  • 63
  • 1
  • 6
0
votes
0 answers

No audio playback when using Expo AV for iOS in a React Native project

I have been trying for a couple days just to be able to get a sound to play on my iOS simulator (currently using XCode's Simulator app). All I'm looking for is to be able to press the "Pressable" component, and trigger audio playback. I have run…
0
votes
1 answer

React native video is not displaying total video time

this my code: export default function VideoPlayer() { const videoPlayerRef = useRef(null); const [status, setStatus] = useState({}); const [totalDuration, setTotalDuration] = useState(null); return (
Jonuux
  • 533
  • 1
  • 7
  • 20
0
votes
0 answers

Error while updating property "position" in shadow node of type: RCTView. null. invalid value for position: left

const Chat = ({ route, navigation, db, isConnected, storage }) => { // Get the `name` prop from the `route` object const { name, backgroundColor, userID } = route.params; // Initialize the `messages` state with an empty array const…