UNPKG

1.58 kBMarkdownView Raw
1# expo-av
2
3Expo universal module for Audio and Video playback
4
5# API documentation
6
7- [Documentation for the master branch](https://github.com/expo/expo/blob/master/docs/pages/versions/unversioned/sdk/av.md)
8- [Documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/av/)
9
10# Installation in managed Expo projects
11
12For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/av/).
13
14# Installation in bare React Native projects
15
16For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/expo/expo/tree/master/packages/react-native-unimodules) before continuing.
17
18### Add the package to your npm dependencies
19
20```
21expo install expo-av
22```
23
24### Configure for iOS
25
26Add `NSMicrophoneUsageDescription` key to your `Info.plist`:
27
28```xml
29<key>NSMicrophoneUsageDescription</key>
30<string>Allow $(PRODUCT_NAME) to access your microphone</string>
31```
32
33Run `npx pod-install` after installing the npm package.
34
35### Configure for Android
36
37Add `android.permission.RECORD_AUDIO` permission to your manifest (`android/app/src/main/AndroidManifest.xml`):
38
39```xml
40<uses-permission android:name="android.permission.RECORD_AUDIO" />
41```
42
43# Contributing
44
45Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).