diff --git a/docs/pages/component/props.mdx b/docs/pages/component/props.mdx index ebd862f2..8395a300 100644 --- a/docs/pages/component/props.mdx +++ b/docs/pages/component/props.mdx @@ -879,19 +879,18 @@ source={{ ``` #### `textTracks` - Load one or more "sidecar" text tracks. This takes an array of objects representing each track. Each object should have the format: > ⚠️ This feature does not work with HLS playlists (e.g m3u8) on iOS -| 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)iOS only supports VTT, Android supports all 3 | -| uri | URL for the text track. Currently, only tracks hosted on a webserver are supported | +| 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.SUBRIP - SubRip (.srt) _ TextTrackType.TTML - TTML (.ttml) \* TextTrackType.VTT - WebVTT (.vtt)iOS only supports VTT, Android 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. @@ -912,7 +911,7 @@ textTracks={[ { title: "Spanish Subtitles", language: "es", - type: TextTrackType.SRT, // "application/x-subrip" + type: TextTrackType.SUBRIP, // "application/x-subrip" uri: "https://durian.blender.org/wp-content/content/subtitles/sintel_es.srt" } ]} @@ -971,12 +970,12 @@ Load one or more "sidecar" text tracks. This takes an array of objects represent > ⚠️ This feature does not work with HLS playlists (e.g m3u8) on iOS -| 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)iOS only supports VTT, Android supports all 3 | -| uri | URL for the text track. Currently, only tracks hosted on a webserver are supported | +| 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.SUBRIP - SubRip (.srt) _ TextTrackType.TTML - TTML (.ttml) \* TextTrackType.VTT - WebVTT (.vtt)iOS only supports VTT, Android 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. @@ -997,7 +996,7 @@ textTracks={[ { title: "Spanish Subtitles", language: "es", - type: TextTrackType.SRT, // "application/x-subrip" + type: TextTrackType.SUBRIP, // "application/x-subrip" uri: "https://durian.blender.org/wp-content/content/subtitles/sintel_es.srt" } ]}