Questions tagged [expo-av]
173 questions
1
vote
2 answers
expo-av Video not showing up on iOS but working on Android
Video and video player is loading fine on Android, but on iOS nothing is rendered. I'm using Video from expo-av.
I tried adding height and width to the view , tried
source={{ uri: post.videoURL + ".mp4" }}
as these solved the problem in other SO…

Simona
- 53
- 1
- 12
1
vote
0 answers
How to turn my recorded audio that's a blob URI into a .wav or .mp3 file in Node.js
I can record my audio and get a blob URI of that recorded audio. What I want to do now is send that audio to my Node.js server and turn that blob URI into a .wav or .mp3 file. I was wondering how do turn the blob URI into a file.
const [recording,…
1
vote
1 answer
error while playing the audio TypeError: sound.current.playAsync is not a function
I am trying to use expo/av to create a music player in React - Native . But i am Facing the error
error while playing the audio TypeError: sound.current.playAsync is not a function
Here is my code below :
import React, { useState, useEffect } from…

Biswas Sampad
- 413
- 1
- 6
- 19
1
vote
0 answers
Expo video plays in different time position on long press
I want to make this feature with React Native Expo-AV Video component.
When user long press on video component, video will play 1 second at 4 different time positions like in xvideos' videos.Or do they use gif in video's poster?

pandorao liger
- 43
- 5
1
vote
0 answers
Expo-av Video not renderig on ios
I installed expo-av
and here is my code. It's working perfectly on android but not rendering on ios
1
vote
0 answers
React Native [expo-av]: Is it possible to initialise more than one sound file into a sound object?
In React Native expo-av, it doesn't seem to be possible that you can initialise more than one sound file into a single sound object. Moreover, it is not possible to use another variable other than 'sound' to initialise another sound object so that…

Stanley Yeung
- 21
- 2
1
vote
1 answer
Argument of type 'Sound' is not assignable to parameter of type 'SetStateAction'
I'm writing a simple react-native app using typescript and expo-cli.
I've imported expo-av but I'm having some trouble when trying to play audio.
I'm following [this guide][1] but it's written in javascript and I guess that's the problem here since…

Mangs
- 698
- 1
- 19
- 40
1
vote
0 answers
expo-av audio unloadAsync removeSubscription problem
The expo-av Playback class's unloadAsync method gives the following error: "TypeError: this._eventEmitter.removeSubscription is not a function" during unloadAsync function even though the unloading succeeds. Is there a way to avoid this…

Kemal Kaplan
- 932
- 8
- 21
1
vote
0 answers
Problem while using Expo-av Library, App crashes while changing the songs
I am running my application on an android device. So I am using Context API, the song is in context, whenever a user clicks on a song it is updated in context and every component gets it and then useEffect of PlayerWidget gets triggered and that…

Voldemort
- 11
- 1
- 1
1
vote
0 answers
How to change pause icon to play when music is completed in react native using expo-av
currently onClick, the music will play/pause. I want to change the icon from pause to play to when music is completely played, but it isn't changing unless I click on the pause icon. I was thinking of setting a setTimeout based on the milliseconds…

Maria Nelson
- 21
- 4
1
vote
3 answers
Expo AV React Native Local Sound File issue
I am trying to create an audio player with react native and expo av. I can play online remote files (through uri) just fine, and my code works well. However, whenever I attempt to play a local file, it throws the error: [Unhandled promise rejection:…

figbar
- 714
- 12
- 35
1
vote
0 answers
React Native : using expo-av does not show Video but when I use the Inspector and select Touchables I can see the elements
I have created an app using npx react-native init AwesomeProject command and I have used the expo-av npm package with Video in the Background (occupying the entire screen) and some Images which can be clicked using Touchable Opacity. I am trying on…

j10
- 2,009
- 3
- 27
- 44
1
vote
2 answers
Expo display remaining seconds of audio
I want to display how much seconds are left from the audio. Like this:
I know I need to use the positionMillis and thedurationMillis props, but how can I monitor the positionMillis?
When I click on a button I load the audio and play it (handleAudio…

Tyler Joe
- 357
- 2
- 18
1
vote
0 answers
Expo React Sticky Notification for Player
I want to add sticky notification for my android audio player and handle the player via app notification but I don't know how I can do this I tried expo official notification documents but failed please help me in this case.
useEffect(() => {
…

Junaid
- 21
- 2
1
vote
0 answers
Is it ok to pass react setState hook to 3rd party library class instance?
I am writing player UI in react-native with expo. There is a 3rd party library expo-av. And in examples section of that lib, react component initialize instance of mediaObject in useEffect and saves reference to it in ref (useRef). And handle…

Rustam Apay
- 551
- 1
- 4
- 18