expo-libvlc-player 6.1.16 → 6.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<i>Screenshots taken from the <a href="example/App.tsx">Example App</a> on Android and iOS</i>
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
#### Supported versions
|
|
23
23
|
|
|
24
24
|
| Platform | Version |
|
|
25
25
|
| -------------------- | ------- |
|
|
@@ -27,9 +27,7 @@
|
|
|
27
27
|
| Android / Android TV | 7+ |
|
|
28
28
|
| iOS / Apple TV | 15.1+ |
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Add the package to your npm dependencies.
|
|
30
|
+
## Installation
|
|
33
31
|
|
|
34
32
|
```
|
|
35
33
|
npm install expo-libvlc-player
|
|
@@ -143,8 +141,8 @@ The `LibVlcPlayerView` extends React Native `ViewProps` and implements the follo
|
|
|
143
141
|
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
144
142
|
| `source` | Sets the source of the media to be played. Set to `null` to release the player | |
|
|
145
143
|
| `options` | Sets the VLC options to initialize the player with. See the [VLC Wiki](https://wiki.videolan.org/VLC_command-line_help/) for more | `[]` |
|
|
146
|
-
| `tracks` | Sets the player audio, video and subtitle tracks
|
|
147
|
-
| `slaves` | Sets the player audio and subtitle slaves
|
|
144
|
+
| `tracks` | Sets the player audio, video and subtitle tracks. See [`Tracks`](#tracks) for more | `undefined` |
|
|
145
|
+
| `slaves` | Sets the player audio and subtitle slaves. See [`Slave`](#slave) for more | `[]` |
|
|
148
146
|
| `scale` | Sets the player scaling factor. Must be a float equal or greater than `0` | `0` |
|
|
149
147
|
| `aspectRatio` | Sets the container aspect ratio. Must be a valid ratio string, number or `"auto"` | `undefined` |
|
|
150
148
|
| `contentFit` | Sets how the video should be scaled to fit in the container | `"contain"` |
|
|
@@ -157,7 +155,7 @@ The `LibVlcPlayerView` extends React Native `ViewProps` and implements the follo
|
|
|
157
155
|
| `autoplay` | Determines whether the media should autoplay once created | `true` |
|
|
158
156
|
| `pictureInPicture` | Determines whether the player should allow Picture-in-Picture (PiP) mode | `false` |
|
|
159
157
|
|
|
160
|
-
####
|
|
158
|
+
#### Callback props
|
|
161
159
|
|
|
162
160
|
| Prop | Description | Payload |
|
|
163
161
|
| ------------------------- | ------------------------------------------------------------ | ----------------------------- |
|
|
@@ -178,7 +176,7 @@ The `LibVlcPlayerView` extends React Native `ViewProps` and implements the follo
|
|
|
178
176
|
| `onPictureInPictureStart` | Called after the player enters Picture-in-Picture (PiP) mode | |
|
|
179
177
|
| `onPictureInPictureStop` | Called after the player exits Picture-in-Picture (PiP) mode | |
|
|
180
178
|
|
|
181
|
-
###
|
|
179
|
+
### Module types
|
|
182
180
|
|
|
183
181
|
#### `Tracks`
|
|
184
182
|
|