Skip to content

Commit

Permalink
3.16.0 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
philcluff authored Apr 5, 2024
1 parent bf6ae28 commit 99b3776
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 12 deletions.
4 changes: 2 additions & 2 deletions MuxPhp/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/3.15.0/PHP';
protected $userAgent = 'OpenAPI-Generator/3.16.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -400,7 +400,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: v1' . PHP_EOL;
$report .= ' SDK Package Version: 3.15.0' . PHP_EOL;
$report .= ' SDK Package Version: 3.16.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
6 changes: 6 additions & 0 deletions MuxPhp/Models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ public function getModelName()
public const MASTER_ACCESS_NONE = 'none';
public const MP4_SUPPORT_STANDARD = 'standard';
public const MP4_SUPPORT_NONE = 'none';
public const MP4_SUPPORT_CAPPED_1080P = 'capped-1080p';
public const MP4_SUPPORT_AUDIO_ONLY = 'audio-only';
public const MP4_SUPPORT_AUDIO_ONLYCAPPED_1080P = 'audio-only,capped-1080p';
public const INGEST_TYPE_ON_DEMAND_URL = 'on_demand_url';
public const INGEST_TYPE_ON_DEMAND_DIRECT_UPLOAD = 'on_demand_direct_upload';
public const INGEST_TYPE_ON_DEMAND_CLIP = 'on_demand_clip';
Expand Down Expand Up @@ -507,6 +510,9 @@ public function getMp4SupportAllowableValues()
return [
self::MP4_SUPPORT_STANDARD,
self::MP4_SUPPORT_NONE,
self::MP4_SUPPORT_CAPPED_1080P,
self::MP4_SUPPORT_AUDIO_ONLY,
self::MP4_SUPPORT_AUDIO_ONLYCAPPED_1080P,
];
}

Expand Down
2 changes: 2 additions & 0 deletions MuxPhp/Models/AssetStaticRenditionsFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ public function getModelName()
public const NAME_MEDIUM_MP4 = 'medium.mp4';
public const NAME_HIGH_MP4 = 'high.mp4';
public const NAME_AUDIO_M4A = 'audio.m4a';
public const NAME_CAPPED_1080P_MP4 = 'capped-1080p.mp4';
public const EXT_MP4 = 'mp4';
public const EXT_M4A = 'm4a';

Expand All @@ -270,6 +271,7 @@ public function getNameAllowableValues()
self::NAME_MEDIUM_MP4,
self::NAME_HIGH_MP4,
self::NAME_AUDIO_M4A,
self::NAME_CAPPED_1080P_MP4,
];
}

Expand Down
8 changes: 7 additions & 1 deletion MuxPhp/Models/CreateAssetRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ public function getModelName()

public const MP4_SUPPORT_NONE = 'none';
public const MP4_SUPPORT_STANDARD = 'standard';
public const MP4_SUPPORT_CAPPED_1080P = 'capped-1080p';
public const MP4_SUPPORT_AUDIO_ONLY = 'audio-only';
public const MP4_SUPPORT_AUDIO_ONLYCAPPED_1080P = 'audio-only,capped-1080p';
public const MASTER_ACCESS_NONE = 'none';
public const MASTER_ACCESS_TEMPORARY = 'temporary';
public const MAX_RESOLUTION_TIER__1080P = '1080p';
Expand All @@ -295,6 +298,9 @@ public function getMp4SupportAllowableValues()
return [
self::MP4_SUPPORT_NONE,
self::MP4_SUPPORT_STANDARD,
self::MP4_SUPPORT_CAPPED_1080P,
self::MP4_SUPPORT_AUDIO_ONLY,
self::MP4_SUPPORT_AUDIO_ONLYCAPPED_1080P,
];
}

Expand Down Expand Up @@ -577,7 +583,7 @@ public function getMp4Support()
/**
* Sets mp4_support
*
* @param string|null $mp4_support Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information.
* @param string|null $mp4_support Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information.
*
* @return self
*/
Expand Down
8 changes: 7 additions & 1 deletion MuxPhp/Models/UpdateAssetMP4SupportRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ public function getModelName()

public const MP4_SUPPORT_STANDARD = 'standard';
public const MP4_SUPPORT_NONE = 'none';
public const MP4_SUPPORT_CAPPED_1080P = 'capped-1080p';
public const MP4_SUPPORT_AUDIO_ONLY = 'audio-only';
public const MP4_SUPPORT_AUDIO_ONLYCAPPED_1080P = 'audio-only,capped-1080p';

/**
* Gets allowable values of the enum
Expand All @@ -234,6 +237,9 @@ public function getMp4SupportAllowableValues()
return [
self::MP4_SUPPORT_STANDARD,
self::MP4_SUPPORT_NONE,
self::MP4_SUPPORT_CAPPED_1080P,
self::MP4_SUPPORT_AUDIO_ONLY,
self::MP4_SUPPORT_AUDIO_ONLYCAPPED_1080P,
];
}

Expand Down Expand Up @@ -322,7 +328,7 @@ public function getMp4Support()
/**
* Sets mp4_support
*
* @param string|null $mp4_support String value for the level of mp4 support
* @param string|null $mp4_support Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). `none` will delete the MP4s from the asset in question.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,5 +429,5 @@ [email protected]
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `v1`
- Package version: `3.15.0`
- Package version: `3.16.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "muxinc/mux-php",
"version": "3.15.0",
"version": "3.16.0",
"description": "Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.",
"keywords": [
"php",
Expand Down
4 changes: 2 additions & 2 deletions docs/Api/AssetsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ updateAssetMp4Support($asset_id, $update_asset_mp4_support_request): \MuxPhp\Mod

Update MP4 support

Allows you to add or remove mp4 support for assets that were created without it. Currently there are two values supported in this request, `standard` and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question.
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 an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question.

### Example

Expand Down Expand Up @@ -947,7 +947,7 @@ $asset_id = 'asset_id_example'; // string | The asset ID.
//
// In your own code you should use an associative array, or
// use a "new \MuxPhp\Models\UpdateAssetMP4SupportRequest" directly.
$update_asset_mp4_support_request = json_decode('{"mp4_support":"standard"}',true); // \MuxPhp\Models\UpdateAssetMP4SupportRequest
$update_asset_mp4_support_request = json_decode('{"mp4_support":"capped-1080p"}',true); // \MuxPhp\Models\UpdateAssetMP4SupportRequest

try {
$result = $apiInstance->updateAssetMp4Support($asset_id, $update_asset_mp4_support_request);
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/DirectUploadsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ $apiInstance = new MuxPhp\Api\DirectUploadsApi(
//
// In your own code you should use an associative array, or
// use a "new \MuxPhp\Models\CreateUploadRequest" directly.
$create_upload_request = json_decode('{"cors_origin":"https://example.com/","new_asset_settings":{"playback_policy":["public"]}}',true); // \MuxPhp\Models\CreateUploadRequest
$create_upload_request = json_decode('{"cors_origin":"https://example.com/","new_asset_settings":{"playback_policy":["public"],"mp4_support":"capped-1080p"}}',true); // \MuxPhp\Models\CreateUploadRequest

try {
$result = $apiInstance->createDirectUpload($create_upload_request);
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/CreateAssetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**playback_policy** | [**\MuxPhp\Models\PlaybackPolicy[]**](PlaybackPolicy.md) | An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: `\"public\"` (anyone with the playback URL can stream the asset). And `\"signed\"` (an additional access token is required to play the asset). If no playback_policy is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional]
**per_title_encode** | **bool** | | [optional]
**passthrough** | **string** | Arbitrary user-supplied metadata that will be included in the asset details and related webhooks. Can be used to store your own ID for a video along with the asset. **Max: 255 characters**. | [optional]
**mp4_support** | **string** | Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
**mp4_support** | **string** | Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
**normalize_audio** | **bool** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to false]
**master_access** | **string** | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
**test** | **bool** | Marks the asset as a test asset when the value is set to true. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test asset are watermarked with the Mux logo, limited to 10 seconds, deleted after 24 hrs. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/UpdateAssetMP4SupportRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**mp4_support** | **string** | String value for the level of mp4 support | [optional]
**mp4_support** | **string** | Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). `none` will delete the MP4s from the asset in question. | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 1 addition & 1 deletion gen/generator-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"apiPackage": "Api",
"srcBasePath": "MuxPhp",
"invokerPackage": "MuxPhp",
"artifactVersion": "3.15.0",
"artifactVersion": "3.16.0",
"gitUserId": "muxinc",
"gitRepoId": "mux-php"
}

0 comments on commit 99b3776

Please sign in to comment.