From 864da19d41391bbb3d5f5967f55b8f438abb09e3 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Fri, 12 Oct 2018 11:09:14 -0700 Subject: [PATCH] Document id prop --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2915c898..91255117 100644 --- a/README.md +++ b/README.md @@ -254,6 +254,7 @@ var styles = StyleSheet.create({ * [bufferConfig](#bufferconfig) * [controls](#controls) * [headers](#headers) +* [id](#id) * [ignoreSilentSwitch](#ignoresilentswitch) * [muted](#muted) * [paused](#paused) @@ -349,7 +350,7 @@ To enable this on iOS, you will need to manually edit RCTVideo.m and uncomment t Example: ``` -headers = {{ +headers={{ Authorization: 'bearer some-token-value', 'X-Custom-Header': 'some value' }} @@ -357,6 +358,16 @@ headers = {{ 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 Controls the iOS silent switch behavior * **"inherit" (default)** - Use the default AVPlayer behavior