mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 11:33:25 +00:00
Update .docs/content/2.essentials/4.using-streams.md
Co-authored-by: Jip Frijlink <jipfrijlink@gmail.com>
This commit is contained in:
@@ -75,7 +75,7 @@ If your target is set to `BROWSER`. There will never be required headers, as it'
|
|||||||
All streams have a list of captions at `Stream.captions`. The structure looks like this:
|
All streams have a list of captions at `Stream.captions`. The structure looks like this:
|
||||||
```ts
|
```ts
|
||||||
type Caption = {
|
type Caption = {
|
||||||
type: CaptionType; // language type, either 'srt' or 'vtt'
|
type: CaptionType; // file type, either 'srt' or 'vtt'
|
||||||
id: string; // only unique per stream
|
id: string; // only unique per stream
|
||||||
url: string; // the url pointing to the subtitle file
|
url: string; // the url pointing to the subtitle file
|
||||||
hasCorsRestrictions: boolean; // If true, you will need to proxy it if you're running in a browser
|
hasCorsRestrictions: boolean; // If true, you will need to proxy it if you're running in a browser
|
||||||
|
Reference in New Issue
Block a user