Skip to content

Commit 1562daa

Browse files
chore!: deprecate mp4_support option (#321) (#547)
1 parent 228c810 commit 1562daa

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 88
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-890a2225edeff31f32254de485652fb874bd69859d6e0f8f261930717d9a6ba2.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-961cb0093d2202e9c716748b73f3440f5eef6c663034aeb82f9f7819e8ba4312.yml

src/resources/video/assets.ts

+17-4
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ export class Assets extends APIResource {
192192
}
193193

194194
/**
195+
* This method has been deprecated. Please see the
196+
* [Static Rendition API](https://www.mux.com/docs/guides/enable-static-mp4-renditions#after-asset-creation).
195197
* Allows you to add or remove mp4 support for assets that were created without it.
196198
* The values supported are `capped-1080p`, `audio-only`,
197199
* `audio-only,capped-1080p`, `standard`(deprecated), and `none`. `none` means that
@@ -240,8 +242,6 @@ export interface Asset {
240242
*/
241243
max_resolution_tier: '1080p' | '1440p' | '2160p';
242244

243-
mp4_support: 'standard' | 'none' | 'capped-1080p' | 'audio-only' | 'audio-only,capped-1080p';
244-
245245
/**
246246
* The status of the asset.
247247
*/
@@ -304,6 +304,11 @@ export interface Asset {
304304
*/
305305
max_stored_resolution?: 'Audio only' | 'SD' | 'HD' | 'FHD' | 'UHD';
306306

307+
/**
308+
* @deprecated
309+
*/
310+
mp4_support?: 'standard' | 'none' | 'capped-1080p' | 'audio-only' | 'audio-only,capped-1080p';
311+
307312
/**
308313
* An object containing one or more reasons the input file is non-standard. See
309314
* [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time)
@@ -683,6 +688,10 @@ export interface AssetOptions {
683688
max_resolution_tier?: '1080p' | '1440p' | '2160p';
684689

685690
/**
691+
* @deprecated Deprecated. See the
692+
* [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions)
693+
* for the updated API.
694+
*
686695
* Specify what level of support for mp4 playback. You may not enable both
687696
* `mp4_support` and `static_renditions`.
688697
*
@@ -745,7 +754,7 @@ export interface AssetOptions {
745754

746755
/**
747756
* An array of static renditions to create for this asset. You may not enable both
748-
* `static_renditions` and `mp4_support`
757+
* `static_renditions` and `mp4_support (the latter being deprecated)`
749758
*/
750759
static_renditions?: Array<AssetOptions.StaticRendition>;
751760

@@ -1442,6 +1451,10 @@ export interface AssetCreateParams {
14421451
max_resolution_tier?: '1080p' | '1440p' | '2160p';
14431452

14441453
/**
1454+
* Deprecated. See the
1455+
* [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions)
1456+
* for the updated API.
1457+
*
14451458
* Specify what level of support for mp4 playback. You may not enable both
14461459
* `mp4_support` and `static_renditions`.
14471460
*
@@ -1501,7 +1514,7 @@ export interface AssetCreateParams {
15011514

15021515
/**
15031516
* An array of static renditions to create for this asset. You may not enable both
1504-
* `static_renditions` and `mp4_support`
1517+
* `static_renditions` and `mp4_support (the latter being deprecated)`
15051518
*/
15061519
static_renditions?: Array<AssetCreateParams.StaticRendition>;
15071520

src/resources/video/live-streams.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,10 @@ export namespace LiveStreamUpdateParams {
865865
master_access?: 'temporary' | 'none';
866866

867867
/**
868-
* Specify what level of support for mp4 playback should be added to new assets
869-
* generated from this live stream.
868+
* @deprecated Deprecated. See the
869+
* [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions#during-live-stream-creation)
870+
* for the updated API. Specify what level of support for mp4 playback should be
871+
* added to new assets generated from this live stream.
870872
*
871873
* - The `none` option disables MP4 support for new assets. MP4 files will not be
872874
* produced for an asset generated from this live stream.

0 commit comments

Comments
 (0)