-
Notifications
You must be signed in to change notification settings - Fork 60
/
shared.ts
36 lines (32 loc) · 1.15 KB
/
shared.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
export interface PlaybackID {
/**
* Unique identifier for the PlaybackID
*/
id: string;
/**
* - `public` playback IDs are accessible by constructing an HLS URL like
* `https://stream.mux.com/${PLAYBACK_ID}`
*
* - `signed` playback IDs should be used with tokens
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*/
policy: PlaybackPolicy;
/**
* The DRM configuration used by this playback ID. Must only be set when `policy`
* is set to `drm`.
*/
drm_configuration_id?: string;
}
/**
* - `public` playback IDs are accessible by constructing an HLS URL like
* `https://stream.mux.com/${PLAYBACK_ID}`
*
* - `signed` playback IDs should be used with tokens
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*/
export type PlaybackPolicy = 'public' | 'signed' | 'drm';