Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

expo av

await Audio.setAudioModeAsync({ playsInSilentModeIOS: true });
  
const playbackObject = new Audio.Sound();
// OR
const { sound: playbackObject } = await Audio.Sound.createAsync(
  { uri: 'http://foo/bar.mp3' },
  { shouldPlay: true }
);
...
Source by docs.expo.dev #
 
PREVIOUS NEXT
Tagged: #expo #av
ADD COMMENT
Topic
Name
8+4 =