Questions tagged [expo-av]
173 questions
2
votes
1 answer
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 it looks like now:
I have 2 questions with…

Ryan Wang
- 418
- 7
- 23
2
votes
0 answers
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 requirements for a React Native video component and I am…

Ben d'Straw
- 141
- 2
- 9
2
votes
1 answer
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, StyleSheet, Dimensions, } from…

Matheus Oliveira
- 21
- 3
2
votes
0 answers
How to play multiple expo av videos in sync?
I am trying to play 2 expo-av videos in sync, my approach below. The problem is that the multiple videos I've tried, cannot start at the same time, either one or the other will starts earlier. The only problem i can think of is that, as stated in…

dre_84w934
- 678
- 8
- 27
2
votes
0 answers
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 the cover of the video and suddenly it disappears,…

navidabasi
- 161
- 1
- 10
2
votes
2 answers
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
error: Possible Unhandled Promise Rejection (id: 0):…

Alisha Lawani
- 41
- 7
2
votes
1 answer
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 video ends (like alert "The video ends").
Code: This…

emmy-chwan
- 149
- 1
- 12
2
votes
0 answers
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 code into it, but I'm not yet comfortable…

SDEZero
- 363
- 2
- 13
2
votes
2 answers
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 loading and playing audio file
if(!sound._loaded)
…

Sarang Damkondwar
- 184
- 1
- 10
2
votes
0 answers
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 createAsync as {islooping:true} and passing the…

Zeed Tanue
- 91
- 5
- 24
2
votes
1 answer
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.playSound = async function (
source,
initialStatus = {…

Victor Molina
- 2,353
- 2
- 19
- 49
2
votes
0 answers
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 is showing blank screen. Could anyone suggest a…

Sajid ali
- 101
- 7
2
votes
2 answers
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:
Wrapping the timer component on a new functional…

bitoiu
- 6,893
- 5
- 38
- 60
1
vote
1 answer
Why is playground music not stopping when I change screens?
This is my first time working with React Native together with Expo and I have been learning a lot, but this is something I am still unable to fix.
I am using expo-av and for short sounds I am not having any problem. They play and then I call…

Elisabete Costa
- 13
- 4
1
vote
0 answers
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 goes into the background. I've tried setting the…

Saqib Ali
- 11
- 2