Questions tagged [expo-av]
173 questions
1
vote
0 answers
Use @aws-sdk/client-transcribe-streaming with react-native and expo-av to transcribe audios
I am currently using expo with react-native and I am facing some difficulties in implementing the usage of @aws-sdk/client-transcribe-streaming.
I saw an implementation with 'react-native-live-audio-stream' but since I am using 'expo', I thought…

docksdocks
- 108
- 9
1
vote
0 answers
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 SystemNavigationBar from react-native-system-navigation-bar to…

Rameez Hussain
- 6,414
- 10
- 56
- 85
1
vote
0 answers
react-native using expo-av IOS mp4 file openai's audio transcriptions invalid file format
I'm getting this back error message back from openai's transcription endpoint
message: "Invalid file format. Supported formats: ['m4a', 'mp3', 'webm', 'mp4', 'mpga', 'wav', 'mpeg']"
Here is my code:
// needed for IoS
if (audioPermission) {
await…

Ibra
- 912
- 1
- 12
- 31
1
vote
3 answers
How to play audio from a URL in React Native app?
I have been trying to play the audio from a Youtube video (or .mp3 URL) in my React Native app. For my purposes, I cannot download the audio files to my device, they need to be streamed from the internet. I tried both Expo AV and…

A. Eddy Nangia
- 11
- 3
1
vote
0 answers
Expo AV not updating durationInMilliseconds on some iPhones but working on others
When recording audio, onStatusUpdate always returns duration: 0.
It will still record the audio as evident from being able to save and later listen to the audio.
However, this problem only exists for a specific device. It works properly on most…

sourabh dadapure
- 192
- 2
- 14
1
vote
0 answers
expo-av: sound.setPositionAsync() does not work
//PLaying Sound
async function playSound() {
console.log('Loading Sound');
const { sound} = await Audio.Sound.createAsync(route.params.url,
);
setSound(sound);
…

UTKARSH RANA
- 11
- 2
1
vote
0 answers
how to stream a streamable video from a google storage bucket with expo-av video element on react native
I need to stream a video with the expo-av video component on react native.
The issue I'm having is that it has to download the entire video before it starts playing.
It needs to stream the video and play immediately and not after it downloads the…

Dean Van Greunen
- 5,060
- 2
- 14
- 28
1
vote
0 answers
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
- 11
- 2
1
vote
0 answers
How to play audio from server use expo-av in react-native
I try to play video from server. This is my code:
import React, {useState, useEffect} from 'react';
import { Button } from 'react-native';
import { Audio } from 'expo-av';
export default function App() {
const [audioStatus, setAudioStatus] =…

Adam
- 486
- 1
- 7
- 19
1
vote
1 answer
iOS AVAudioRecorder- how to record silence while user is on a phone call
This is the code I have right now for pausing a recording when a user receives a phone call and resuming it after they hang up.
- (void)handleAudioSessionInterruption:(NSNotification *)notification
{
NSNumber *interruptionType = [[notification…

Grzegorz Brzęczyszczykiewicz
- 1,630
- 1
- 20
- 45
1
vote
0 answers
How can I set expo-av to use in-call volume instead of media volume (Android)
I implemented a dialing tone in my app which plays out loud when a user is placing a call.
The problem is, on android the volume control can be completely minimal (0) but on IOS this doesn’t happen (0.1). – these values are just illustrations.
After…

Chris Josh
- 389
- 3
- 7
1
vote
0 answers
Audio and Video not working offline when using useNetInfo from netinfo
I've been battling a bug in my code for the last 4 days and would appreciate some pointers to get me going in the right directions. Component is working fine as long as there is internet connection, but if there is no internet connection, audios and…

SJaka
- 712
- 13
- 40
1
vote
0 answers
React native expo av - Manipulating Video Images?
I really struggle to find documentation on how to manipulate video images with expo av.
I manage to do this easily in a classic web app by copying video image to a canvas while playing. Something similar to:
ctx.drawImage(myVideo, 0, 0, videoWidth,…

TOPKAT
- 6,667
- 2
- 44
- 72
1
vote
1 answer
Is there a way to pan audio left and right with Expo-AV?
I am building a react-native app with expo and I need the audio to only come out of left or right earphones/speakers. I used expo-av to play the sound file. I have searched the expo-av docs for information about panning left and right, but I haven't…

Wiley Buchanan
- 91
- 7
1
vote
1 answer
Show/Hide Expo Video Controller on press (Android Platform)
I'm using expo-av to create a video player. Everything works fine on iOS but in Android platform, I can't tap on the screen to manually show/hide the video controller. Any solution for this? Thank you guys.
Here is the code: