Questions tagged [expo-av]
173 questions
1
vote
0 answers
Expo-av Audio just play only the first time but not when click the button again
I'm new to react-native and expo-av. I'm using Expo-av to create an Audio Player. The problem is the audio only play the first time the button clicked. After it finished, it won't play again although I click on the play button. I already try to…

nmnhon
- 43
- 3
1
vote
0 answers
Illegal char <*> at index 98: C:\Users\xujian\project\duxapp\node_modules\react-native\ReactAndroid\build\intermediates\library_*\*\jni
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Where:
Build file 'C:\Users\xujian\project\duxapp\node_modules\expo-av\android\build.gradle' line: 13
What went wrong:
A problem occurred evaluating project…

ShaoGong
- 41
- 3
1
vote
0 answers
can't set setPositionAsync in expo-av on Android
I am using expo-av to play Audio sounds in my app but when I call soundObject.setPositionAsync(pos) it sets the audio position back to 0 instead of the position that I provided to it, what could be the cause

Paulos Ab
- 319
- 4
- 16
1
vote
1 answer
I can't use Expo-av together with react-native-track-player in an Expo React Native app
please I want to use react-native-track-player to play audios in my app and I also need Expo-av for audio recording in the same app so I installed both libraries but when I tried to generate a development build of the app with EAS the build kept…

Paulos Ab
- 319
- 4
- 16
1
vote
1 answer
Get FPS of the local video in react-native
I want to extract the FPS value of my video using react-native,
Please suggest the best available solution.
Thanks in advance

Vijay Kahar
- 1,082
- 1
- 7
- 20
1
vote
0 answers
Expo React Native app,Video sending time needs to minimize[currently long time to send it]
Want to send the video to DB in the minimum time possible[currently 5-sec video takes more than 30 seconds], but quality does not matter. here.package.json and the code of the video are below.
in package.json:
"expo": ">=44.0.0-* <45.0.0",
…

R. Mahbub
- 342
- 6
- 14
1
vote
0 answers
Why expo ImagePicker is not giving me an option to trim the video before/when uploading from an android device, even after using videoMaxDuration: 30,
in IOS, we can't upload any video that is greater than 30 Seconds.
and if you try to upload it would give you an option to trim it to 30 seconds like Whatsapp, but on android it is taking any video that we are uploading.
Any idea what might be…

Shivam purbia
- 228
- 4
- 13
1
vote
2 answers
How to make expo-av video to take needed inside a flatlist?
I am developing an instagram-like app where I needed to render images/videos. I am using flatlist to prevent memory lost, and using expo-av package to render the video.
Here is a screenshot of what I want to achieve:
So my goal here is to render…

Ryan Wang
- 418
- 7
- 23
1
vote
1 answer
How to play recording through the speaker in react native expo av
I'm trying to make a voice memo component for my app using expo-av. I've figured out how to create the recording but when playing it, it only plays through the earpiece speaker. Is there a way I can playback the recording through the main phone…

sam rafiei
- 51
- 1
- 6
1
vote
0 answers
Error when use Audio.Sound.pauseAsync() in expo-av
This is my code
const [isPlaying, setIsPlaying] = useState(false);
const [playbackObject, setPlaybackObject] = useState(null as any);
const [playbackStatus, setPlaybackStatus] = useState(null as any);
const handleAudioPlayPause = async ()…

Emmanuel Garcia Martinez
- 520
- 3
- 10
- 24
1
vote
0 answers
Native playback controls are missing on iOS while using expo av
I am using React native expo AV and native playback controls missing on iOS 14.0.1. But it works on Android normally. How can I fix it?

Shayimerdan
- 47
- 7
1
vote
1 answer
React-native: How to change the audio speed in expo-av
I'm having trouble changing the prop: 'rate' to change the speed of the audio being played.
I'm using expo-av (https://docs.expo.dev/versions/latest/sdk/av/).
Here's my code:
import {Text, View, Alert } from 'react-native'
import * as MediaLibrary…

Light Love Peace
- 21
- 3
1
vote
1 answer
Expo-AV not loading audio from server on iOS
I am building an audio player for my react native expo project. I am using expo-av to play the sound that I am pulling from my AWS s3 bucket. I am using expo SDK 44. Everything works fine on Android, but I am receiving an error on iOS:
[Unhandled…

igotbeatebydre
- 81
- 8
1
vote
1 answer
How can i stop the sound on Expo-AV REACT NATIVE
I'm using this function for the play sound files. I want the sound to stop when I click the button
function playSound(){
Audio.Sound.createAsync(
selectedAnimals.soundUrl,
{ shouldPlay: true }
).then((res)=>{
…

spaceWalker
- 139
- 1
- 10
1
vote
0 answers
HLS Playlist issue "Unable to instantiate decoder OMX.MTK.VIDEO.DECODER.AVC" React native video player
I try to play HLS video in flatlist in that some video play and some video through Unable to instantiate decoder OMX.MTK.VIDEO.DECODER.AVC , Same video after closing and reopen the app its play good, when we scroll above 15 to 20 videos again it's…

Pandian
- 19
- 3