From 4cdeebea65eace4b81804b0511b3bf276085d312 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Wed, 11 Jul 2018 09:22:24 -0700 Subject: [PATCH] Cleanup up iOS textTracks explanation --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b8dde0b..19b4371d 100644 --- a/README.md +++ b/README.md @@ -402,9 +402,11 @@ Property | Description --- | --- title | Descriptive name for the track language | 2 letter [ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) representing the language -type | Mime type of the track
* TextTrackType.SRT - SubRip (.srt)
* TextTrackType.TTML - TTML (.ttml)
* TextTrackType.VTT - WebVTT (.vtt)
Android supports all 3 types, iOS only supports VTT +type | Mime type of the track
* TextTrackType.SRT - SubRip (.srt)
* TextTrackType.TTML - TTML (.ttml)
* TextTrackType.VTT - WebVTT (.vtt)
iOS only supports VTT, Android ExoPlayer supports all 3 uri | URL for the text track. Currently, only tracks hosted on a webserver are supported +On iOS, sidecar text tracks are only supported for individual files, not HLS playlists. For HLS, you should include the text tracks as part of the playlist. + Example: ``` import { TextTrackType }, Video from 'react-native-video'; @@ -425,7 +427,6 @@ textTracks={[ ]} ``` -On iOS, sidecar text tracks are not supported for HLS playlists. For HLS playlists, you should include the text tracks as part of the playlist. Platforms: Android ExoPlayer, iOS