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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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:
```ts
type Caption = {
type: CaptionType; // language type, either 'srt' or 'vtt'
type: CaptionType; // file type, either 'srt' or 'vtt'
id: string; // only unique per stream
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