Skip to content

chore!: deprecate mp4_support option (#321) #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 88
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-890a2225edeff31f32254de485652fb874bd69859d6e0f8f261930717d9a6ba2.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-961cb0093d2202e9c716748b73f3440f5eef6c663034aeb82f9f7819e8ba4312.yml
21 changes: 17 additions & 4 deletions src/resources/video/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ export class Assets extends APIResource {
}

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

mp4_support: 'standard' | 'none' | 'capped-1080p' | 'audio-only' | 'audio-only,capped-1080p';

/**
* The status of the asset.
*/
Expand Down Expand Up @@ -304,6 +304,11 @@ export interface Asset {
*/
max_stored_resolution?: 'Audio only' | 'SD' | 'HD' | 'FHD' | 'UHD';

/**
* @deprecated
*/
mp4_support?: 'standard' | 'none' | 'capped-1080p' | 'audio-only' | 'audio-only,capped-1080p';

/**
* An object containing one or more reasons the input file is non-standard. See
* [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time)
Expand Down Expand Up @@ -683,6 +688,10 @@ export interface AssetOptions {
max_resolution_tier?: '1080p' | '1440p' | '2160p';

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

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

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

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

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

Expand Down
6 changes: 4 additions & 2 deletions src/resources/video/live-streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,10 @@ export namespace LiveStreamUpdateParams {
master_access?: 'temporary' | 'none';

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