Document id prop
This commit is contained in:
parent
4c22943351
commit
864da19d41
13
README.md
13
README.md
@ -254,6 +254,7 @@ var styles = StyleSheet.create({
|
|||||||
* [bufferConfig](#bufferconfig)
|
* [bufferConfig](#bufferconfig)
|
||||||
* [controls](#controls)
|
* [controls](#controls)
|
||||||
* [headers](#headers)
|
* [headers](#headers)
|
||||||
|
* [id](#id)
|
||||||
* [ignoreSilentSwitch](#ignoresilentswitch)
|
* [ignoreSilentSwitch](#ignoresilentswitch)
|
||||||
* [muted](#muted)
|
* [muted](#muted)
|
||||||
* [paused](#paused)
|
* [paused](#paused)
|
||||||
@ -349,7 +350,7 @@ To enable this on iOS, you will need to manually edit RCTVideo.m and uncomment t
|
|||||||
|
|
||||||
Example:
|
Example:
|
||||||
```
|
```
|
||||||
headers = {{
|
headers={{
|
||||||
Authorization: 'bearer some-token-value',
|
Authorization: 'bearer some-token-value',
|
||||||
'X-Custom-Header': 'some value'
|
'X-Custom-Header': 'some value'
|
||||||
}}
|
}}
|
||||||
@ -357,6 +358,16 @@ headers = {{
|
|||||||
|
|
||||||
Platforms: Android ExoPlayer
|
Platforms: Android ExoPlayer
|
||||||
|
|
||||||
|
#### id
|
||||||
|
Set the DOM id element so you can use document.getElementById on web platforms. Accepts string values.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
id="video"
|
||||||
|
```
|
||||||
|
|
||||||
|
Platforms: DOM
|
||||||
|
|
||||||
#### ignoreSilentSwitch
|
#### ignoreSilentSwitch
|
||||||
Controls the iOS silent switch behavior
|
Controls the iOS silent switch behavior
|
||||||
* **"inherit" (default)** - Use the default AVPlayer behavior
|
* **"inherit" (default)** - Use the default AVPlayer behavior
|
||||||
|
Loading…
Reference in New Issue
Block a user