You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install `react-native-video` in your React Native project.
167
166
168
-
Installing this package allows you to play the video files/attachments in the chat. Otherwise by default, video files will be opened in default
169
-
browser of the device.
167
+
> Available in stream-chat-react-native >= v4.7.0
168
+
169
+
Installing this package allows you to play the video files/attachments in the chat. Otherwise by default, video files will be opened in default browser of the device.
170
+
171
+
<Tabs
172
+
defaultValue='yarn'
173
+
values={[
174
+
{ label: 'Yarn', value: 'yarn' },
175
+
{ label: 'npm', value: 'npm' },
176
+
]}
177
+
>
178
+
<TabItemvalue='yarn'>
179
+
180
+
```bash
181
+
yarn add react-native-video
182
+
```
183
+
184
+
</TabItem>
185
+
<TabItemvalue='npm'>
186
+
187
+
```bash
188
+
npm install react-native-video
189
+
```
190
+
191
+
</TabItem>
192
+
</Tabs>
193
+
194
+
We require [exoplayer](https://github.com/google/ExoPlayer) to be the media player on Android. To make `react-native-video` to use exoplayer, add the following in `android/settings.gradle`:
195
+
196
+
```
197
+
include ':react-native-video'
198
+
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer')
199
+
```
170
200
171
201
### AndroidX Support
172
202
@@ -187,7 +217,7 @@ Stream Chat for React Native is set up for parity on Expo, expo requires a diffe
Installing this package allows you to play the video files/attachments in the chat. Otherwise by default, video files will be opened in default
247
-
browser of the device.
278
+
Installing this package allows you to play the video files/attachments in the chat. Otherwise by default, video files will be opened in default browser of the device.
0 commit comments