Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
8 votes
1 answer
8k views

expo-av how to play audio with URL

I'm working with expo-av package in my Expo managed app. I'm passing a url to an audio file on the internet to createAsync, but the audio is not playing. When I use an audio file that lives alongside ...
hayata_suenaga's user avatar
8 votes
2 answers
2k views

Expo: Get audio data realtime and send via Socket.IO

App I want to make I would like to make audio recognition mobile app like Shazam with Expo Expo AV(https://docs.expo.io/versions/latest/sdk/audio) Tensorflow serving Socket.IO I want to send ...
Watanabe.N's user avatar
  • 1,649
6 votes
2 answers
2k views

Error trying to access the error property of AVPlaybackStatus

I'm new to TypeScript and am trying to work with expo-av for audio playback. The following code gives me an error: TS2339: Property 'error' does not exist on type 'AVPlaybackStatus'. const { sound, ...
Reto Höhener's user avatar
6 votes
0 answers
351 views

Expo-AV - When our app gets minimised/closed it pauses the users background music e.g. spotify

We've got a really strange issue where a muted video is playing on our app, but when you minimise the app, if the user has background music playing on something like Spotify or Apple music, it pauses ...
owenmelbz's user avatar
  • 6,428
6 votes
1 answer
2k views

How to change the video displaying orientation in expo-av?

I'm using expo-av to display videos. The videos are played in Portrait and i'm trying to display the video depending on the device orientation. My code is : import { Video } from 'expo-av'; import ...
Abdo Rabah's user avatar
  • 1,974
5 votes
1 answer
3k views

Stop Audio expo-av - React Native Expo

I am using Audio from expo-av in react-native-expo. I can run the audio using loadAsync method on Audio.sound contructor. Although when I try to stop the voice it doesn't stop the voice. Following is ...
nikhil024's user avatar
  • 469
5 votes
2 answers
3k views

React Native Expo Audio not playing on iOS

I'm trying to build a simple audio player that loads a file from our server and plays it. Currently this code works on Android but iOS doesn't work, throwing the error AVPlayerItem instance has ...
Loquen's user avatar
  • 51
5 votes
1 answer
587 views

How to playback multiple audio files synchronously in Expo-av?

In my app users record themselves singing over a backing track, and then later playback the recorded audio and this backing track at the same time. I use expo-av for my audio system. The problem is ...
Jackson's user avatar
  • 51
5 votes
1 answer
447 views

What is the best practice solution to embed videos from different sources in a ReactNative app?

I'm currently trying to implement videos from a number of sources into a learning app built with Expo and ReactNative. I want to include video sources from: YouTube Vimeo Microsoft Stream Custom .mp4 ...
Christian Aichner's user avatar
5 votes
1 answer
956 views

EXPO-AV cache of audio files -REACT NATIVE

I am using react native to develop an app. I am currently recording audio files with expo AV and then I am able to send this files to a server. I don't really want this files to occupate memory in the ...
gggx's user avatar
  • 103
4 votes
4 answers
4k views

Expo AV audio not playing on iOS/ iPhone

I have used Expo AV and developed a screen in my app to play audio files fetched from my server. It works fine on Android, but doesn't play anything on iPhone. When I play a button to play the audio ...
Khaja Nizamuddin's user avatar
4 votes
1 answer
2k views

How to change video speed (1x,2x ....) in Expo av?

I am trying implement a video functionality on Expo using Expo-av. But I got stuck in controlling video speed like 1x, 2x like youtube. Can any one help me on that . Thank you in advance.
Bhaskar Joshi's user avatar
4 votes
1 answer
2k views

Expo-Av play multiple sounds at a time

I'm trying to get multiple sounds files to play on an Expo-AV, however when one sound plays, the other stops. I can't get more than one sound to play at a time. What I tried I tried a class method to ...
Dohan Bhagat's user avatar
4 votes
1 answer
2k views

Video display as black screen and audio only when playing .m3u8 from s3 bucket

Updated: I'm using Expo Managed, expo-av I’m facing an issue when playing .m3u8 video on IOS device. We are uploading video on s3 bucket and generate .m3u8 video url, at the time we load video, it’s ...
thanhthanchuc's user avatar
3 votes
1 answer
2k views

Why will my expo-av Video not start playing automatically?

I have a Video that I am rendering with expo-av. The video renders fine, however it will not start playing upon first render. I have the shouldPlay prop set to true. I have provided a snack example ...
MouseWarrior's user avatar
3 votes
1 answer
918 views

Play audio response from OpenAI TTS API in React Native with Expo

I've recently started to develop a React Native App with Expo and a couple of days ago I ran into a problem which is now beginning to make me crazy. I want to send a text string to OpenAI TTS API and ...
Christoffer Nielsen's user avatar
3 votes
2 answers
5k views

Expo av playbackObject's onPlaybackStatusUpdate is called only on play/stop instead of interval by progressUpdateIntervalMillis

onPlaybackStatusUpdate should return the output after every 100ms but only returns on play or stop. am I missing something in my code. (I am new to Expo and Expo AV). Please see code below used for ...
Sarang Damkondwar's user avatar
3 votes
1 answer
3k views

How to display video landscape in expo-av?

I'm needing to rotate my video screen as soon as I press my video's fullscreen button in expo-av. My code is: import { StatusBar } from 'expo-status-bar'; import * as React from 'react'; import { View,...
Matheus Oliveira's user avatar
3 votes
1 answer
807 views

How to Achieve Background Audio Playback with Expo AV

I'm encountering an issue with background audio playback in my Expo app using the Expo AV library. The audio playback works fine when the app is in the foreground, but it stops abruptly when the app ...
Saqib Ali's user avatar
3 votes
0 answers
540 views

React Native Expo-av has a slight delay between button touch and sound play even after preloading sound

Update: I'm leaving this to save research and time for others. I used onPressIn instead of onPress for better results. The events are called as follows. onPressIn --> onPressOut --> onPress <...
Raffy Norair's user avatar
3 votes
1 answer
1k views

Expo AV Audio not audible on ios

Hi everyone I am using Expo AV to play sounds in my React Native (Expo-managed) app, the audio plays well and audibly on android but it doesn't play loudly and audibly on ios, and apple also rejected ...
Paulos Ab's user avatar
  • 369
3 votes
0 answers
305 views

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 ...
nmnhon's user avatar
  • 65
3 votes
0 answers
321 views

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 ...
Shivam purbia's user avatar
3 votes
1 answer
501 views

Unhandled promise rejection: Error: Seeking interrupted. on expo video av React Native

I'm trying to implement the setPositionAsync() for changing the position of the video with a slider, it works, but when i change it it gives me hundreds and hundreds of warnings about an unhandled ...
Cookie Developer's user avatar
3 votes
0 answers
971 views

Expo: expo-av play new audio file in the background?

Is it possible for Expo (managed workflow) to play new audio file in the background using expo-av? According to this https://expo.canny.io/feature-requests/p/audio-playback-in-background feature ...
user7858768's user avatar
3 votes
0 answers
393 views

React native Expo-AV looping sound for specific second

I am building a application where its required to play a background music when user enters a specific page for certain amount of time. I am using expo-av for the sound and looping the sound while ...
Zeed Tanue's user avatar
3 votes
1 answer
2k views

Flatlist with video streaming, React Native, Expo, runs into memory problems on Android

Expo app with flatlist and one video per line. (cf. TikTok) Expo SDK 40.0.0 Flatlist - optimised (shouldComponentUpdate) + see props, max 2 lines are rendered at the same time. There is a clean ...
BusinessDundee's user avatar
3 votes
0 answers
1k views

Sound doesn't play on built standalone version of Expo app (iOS and Android) using expo-av

When testing it through Expo app on phones and simulator, everything works perfectly. The problem is when I build the app and test it on an Android device or in iOS simulator, the sound doesn't play. ...
GrgaMrga's user avatar
  • 500
2 votes
2 answers
561 views

Audio Blob in React Native Expo not working

I'm making an API call to the Eleven Labs API and then access the data to get back the following blob: {"_data": {"__collector": {}, "blobId": "C3F1259A-B9CD-40D9-...
timohuennebeck's user avatar
2 votes
1 answer
971 views

Expo AV: 'if' video has finished, go back to start

I am trying to create a function in Expo AV where 'if' the video has finished playing, it automatically returns to the start. The restart() function that I created does not allow this. Please excuse ...
Alfie's user avatar
  • 43
2 votes
2 answers
2k views

Playing an audio file with source => {uri: 'remote-file-path'} not working - React Native (expo)

I keep getting this error when i try to play an audio from my local backend or an already uploaded audio from a site. No matter what file format, this is what I get and this only happens with ios ...
Alisha Lawani's user avatar
2 votes
2 answers
928 views

When the app made with Expo is open on, it does not go to sleep mode, it stays open all the time

I uploaded the app to the appstore. According to the feedback I get, the screen stays on all the time. How can I solve this problem? I wondered if the screen stays on because the devclient is open. ...
yavuzceliker's user avatar
2 votes
1 answer
2k views

How to alert something when the video ends on expo-video-player on react native?

The expo-video-player repo with custom control has been very helpful to me (this is the link of the repo I based from). I was wondering how can I make a function where I can do something when the ...
emmy-chwan's user avatar
2 votes
2 answers
4k views

React Native Expo AV - Audio not playing

I am implementing an AudioPlayer using the expo-av library. For playing audios I am doing this: import { Audio } from "expo-av"; export default function AudioPlayer() {} AudioPlayer....
Victor Molina's user avatar
2 votes
2 answers
2k views

methods being called on Audio.Sound() after I've unload it and moved screen

I'm extending the functionality of a timer component to add a beep sound for the last 3 seconds of the timer. That works fine, the issue is after all is said and done. I'm doing the following: ...
bitoiu's user avatar
  • 7,286
2 votes
0 answers
195 views

Android System Bar not hiding in Android video full-screen on expo-av

So I’m using expo-av on my app to play videos. And I’m running into an issue on Android where the Android System Navigation bar doesn’t hide in full-screen mode. I’ve even tried using ...
Rameez Hussain's user avatar
2 votes
1 answer
883 views

Overriding silent mode with Expo AV

Has anyone managed to override the silent mode switch to autoplay sounds using Expo AV? I'm looking to do so for a timer feature that I have in my app so I wouldn't be able to rely on user interaction ...
Ara's user avatar
  • 21
2 votes
1 answer
130 views

How to handle internet disconnection when loading an expo-av video component

I have a simple reactnative component, which has the expo-av video element on it. I'm having an issue were if the network is disconnected when attempting to play the video and then when the internet ...
X3R0's user avatar
  • 6,124
2 votes
0 answers
292 views

__DEV__ is not defined running expo av video on react project

Im' trying to display a video using expo-av video everything fine when i use html video i have then install expo-av and expo-av-modules and when i go back to my localhost front end it show a white ...
Ilyès BEJIA's user avatar
2 votes
1 answer
816 views

Expo-AV Audio crashing on Android on play

So I'm fairly new to using EXPO and building apps. I've been tasked to add a media player to a client's app and the setup I have currently works fine on iOS on both physical and emulator devices but ...
Kwadwo Asante-Kwabiah's user avatar
2 votes
0 answers
505 views

Why expo-av is making my android react-native app laggy?

I'm using expo-av to render a list of videos (like Tiktok home screen style), it works fine on IOS but on Android is lagging. I've tried also react-native-android-video but I faced a lot of ...
Rihab's user avatar
  • 21
2 votes
0 answers
1k views

Expo-AV wait until audio finished playing

I've been trying to fix this for over a week now and I just can't solve it. I want to be able to map through an array of data that has a link for an audio file, and play each audio after another. The ...
ashketchup's user avatar
2 votes
1 answer
647 views

How to autoplay expo-av video on focus in flatlist

The app I'm making consist pictures and videos sharing, and my goal is to autoplay the video once it is focused, also pauses it after it is out of the view inside the FlatList. Here is a demo of what ...
Ryan Wang's user avatar
  • 428
2 votes
0 answers
718 views

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? <ScrollView style={{ marginTop: 10 }}> ...
Shayimerdan's user avatar
2 votes
0 answers
1k views

How can I make the native controls on a React Native expo-av Video visible?

I need to know how to assign a function to an expo-av Video component's onPress event, or how to make a useRef reference trigger an onPress event on an expo-av Video component. I have a lot of ...
Ben d'Straw's user avatar
2 votes
0 answers
787 views

Videos keep disappearing with Expo Av

I'm using Expo av combined with a flatlist to render a bunch of videos in the learn section of my app. For some reason, some of the videos start to disappear after initial loading (it's like you see ...
navidabasi's user avatar
2 votes
0 answers
247 views

Fork an expo module and how to maintain it

As you probably already know Expo is react native developer toolkit, it comes with a bunch of modules. One of the modules(expo-av) lacks a functionality that I'm interested. Therefore I'd like to some ...
SDEZero's user avatar
  • 363
2 votes
0 answers
197 views

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 ...
Rustam Apay's user avatar
2 votes
0 answers
205 views

Video url returned by expo-camera when embedded in Video Component of expo-av gives blank screen

I tried to capture a video using expo-camera, once recorded a video, as we get a uri of video i used that uri to show a preview,to show preview i used video component of expo - av, But Video component ...
Sajid ali's user avatar
  • 141
1 vote
2 answers
2k views

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 ...
Ryan Wang's user avatar
  • 428