Update .docs/content/2.essentials/4.using-streams.md

Co-authored-by: Jip Frijlink <jipfrijlink@gmail.com>
This commit is contained in:
mrjvs
2023-12-29 17:41:29 +01:00
committed by GitHub
parent 8589185c53
commit 9ad12286ae

View File

@@ -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