Skip to content

Commit

Permalink
0.11.0 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
philcluff committed Apr 5, 2024
1 parent 34a1bfd commit a7f4fb0
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
java zulu-11.52.13
groovy 3.0.8
yarn 1.22.19
nodejs lts
nodejs 18.17.0
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.mux</groupId>
<artifactId>mux-sdk-java</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -58,7 +58,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.mux:mux-sdk-java:0.10.0"
compile "com.mux:mux-sdk-java:0.11.0"
```

### Others
Expand All @@ -71,7 +71,7 @@ mvn clean package

Then manually install the following JARs:

* `target/mux-sdk-java-0.10.0.jar`
* `target/mux-sdk-java-0.11.0.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {
}

group = 'com.mux'
version = '0.10.0'
version = '0.11.0'

repositories {
mavenCentral()
Expand Down
3 changes: 3 additions & 0 deletions docs/Asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ Name | Value
---- | -----
STANDARD | &quot;standard&quot;
NONE | &quot;none&quot;
CAPPED_1080P | &quot;capped-1080p&quot;
AUDIO_ONLY | &quot;audio-only&quot;
AUDIO_ONLY_CAPPED_1080P | &quot;audio-only,capped-1080p&quot;



Expand Down
1 change: 1 addition & 0 deletions docs/AssetStaticRenditionsFiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ LOW_MP4 | &quot;low.mp4&quot;
MEDIUM_MP4 | &quot;medium.mp4&quot;
HIGH_MP4 | &quot;high.mp4&quot;
AUDIO_M4A | &quot;audio.m4a&quot;
CAPPED_1080P_MP4 | &quot;capped-1080p.mp4&quot;



Expand Down
4 changes: 2 additions & 2 deletions docs/AssetsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ Name | Type | Description | Notes
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, &#x60;standard&#x60; and &#x60;none&#x60;. &#x60;none&#x60; means that an asset *does not* have mp4 support, so submitting a request with &#x60;mp4_support&#x60; set to &#x60;none&#x60; 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 &#x60;capped-1080p&#x60;, &#x60;audio-only&#x60;, &#x60;audio-only,capped-1080p&#x60;, &#x60;standard&#x60;(deprecated), and &#x60;none&#x60;. &#x60;none&#x60; means that an asset *does not* have mp4 support, so submitting a request with &#x60;mp4_support&#x60; set to &#x60;none&#x60; will delete the mp4 assets from the asset in question.

### Example
```java
Expand All @@ -972,7 +972,7 @@ public class Example {

AssetsApi apiInstance = new AssetsApi(defaultClient);
String ASSET_ID = "ASSET_ID_example"; // String | The asset ID.
UpdateAssetMP4SupportRequest updateAssetMP4SupportRequest = {"mp4_support":"standard"}; // UpdateAssetMP4SupportRequest |
UpdateAssetMP4SupportRequest updateAssetMP4SupportRequest = {"mp4_support":"capped-1080p"}; // UpdateAssetMP4SupportRequest |
try {
AssetResponse result = apiInstance.updateAssetMp4Support(ASSET_ID, updateAssetMP4SupportRequest)
.execute();
Expand Down
5 changes: 4 additions & 1 deletion docs/CreateAssetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**playbackPolicy** | **java.util.List&lt;PlaybackPolicy&gt;** | An array of playback policy names that you want applied to this asset and available through &#x60;playback_ids&#x60;. Options include: &#x60;\&quot;public\&quot;&#x60; (anyone with the playback URL can stream the asset). And &#x60;\&quot;signed\&quot;&#x60; (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]
**perTitleEncode** | **Boolean** | | [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]
**mp4Support** | [**Mp4SupportEnum**](#Mp4SupportEnum) | 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&#39; 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]
**mp4Support** | [**Mp4SupportEnum**](#Mp4SupportEnum) | Specify what level of support for mp4 playback. * The &#x60;capped-1080p&#x60; option produces a single MP4 file, called &#x60;capped-1080p.mp4&#x60;, with the video resolution capped at 1080p. This option produces an &#x60;audio.m4a&#x60; file for an audio-only asset. * The &#x60;audio-only&#x60; option produces a single M4A file, called &#x60;audio.m4a&#x60; for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The &#x60;audio-only,capped-1080p&#x60; option produces both the &#x60;audio.m4a&#x60; and &#x60;capped-1080p.mp4&#x60; files. Only the &#x60;capped-1080p.mp4&#x60; file is produced for a video-only asset, while only the &#x60;audio.m4a&#x60; file is produced for an audio-only asset. The &#x60;standard&#x60;(deprecated) option produces up to three MP4 files with different levels of resolution (&#x60;high.mp4&#x60;, &#x60;medium.mp4&#x60;, &#x60;low.mp4&#x60;, or &#x60;audio.m4a&#x60; for an audio-only asset). MP4 files are not produced for &#x60;none&#x60; (default). In most cases you should use our default HLS-based streaming playback (&#x60;{playback_id}.m3u8&#x60;) which can automatically adjust to viewers&#39; 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]
**normalizeAudio** | **Boolean** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional]
**masterAccess** | [**MasterAccessEnum**](#MasterAccessEnum) | 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** | **Boolean** | 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 All @@ -25,6 +25,9 @@ Name | Value
---- | -----
NONE | &quot;none&quot;
STANDARD | &quot;standard&quot;
CAPPED_1080P | &quot;capped-1080p&quot;
AUDIO_ONLY | &quot;audio-only&quot;
AUDIO_ONLY_CAPPED_1080P | &quot;audio-only,capped-1080p&quot;



Expand Down
2 changes: 1 addition & 1 deletion docs/DirectUploadsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public class Example {
accessToken.setPassword("YOUR PASSWORD");

DirectUploadsApi apiInstance = new DirectUploadsApi(defaultClient);
CreateUploadRequest createUploadRequest = {"cors_origin":"https://example.com/","new_asset_settings":{"playback_policy":["public"]}}; // CreateUploadRequest |
CreateUploadRequest createUploadRequest = {"cors_origin":"https://example.com/","new_asset_settings":{"playback_policy":["public"],"mp4_support":"capped-1080p"}}; // CreateUploadRequest |
try {
UploadResponse result = apiInstance.createDirectUpload(createUploadRequest)
.execute();
Expand Down
5 changes: 4 additions & 1 deletion docs/UpdateAssetMP4SupportRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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



Expand All @@ -16,6 +16,9 @@ Name | Value
---- | -----
STANDARD | &quot;standard&quot;
NONE | &quot;none&quot;
CAPPED_1080P | &quot;capped-1080p&quot;
AUDIO_ONLY | &quot;audio-only&quot;
AUDIO_ONLY_CAPPED_1080P | &quot;audio-only,capped-1080p&quot;



2 changes: 1 addition & 1 deletion gen/generator-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"!!source": "https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/java.md",
"artifactVersion": "0.10.0",
"artifactVersion": "0.11.0",
"apiPackage": "com.mux.sdk",
"artifactDescription": "Mux SDK for Java",
"artifactId": "mux-sdk-java",
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mux/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("Mux Java | 0.10.0");
setUserAgent("Mux Java | 0.11.0");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mux/sdk/AssetsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ public okhttp3.Call executeAsync(final ApiCallback<AssetResponse> _callback) thr

/**
* 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, &#x60;standard&#x60; and &#x60;none&#x60;. &#x60;none&#x60; means that an asset *does not* have mp4 support, so submitting a request with &#x60;mp4_support&#x60; set to &#x60;none&#x60; 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 &#x60;capped-1080p&#x60;, &#x60;audio-only&#x60;, &#x60;audio-only,capped-1080p&#x60;, &#x60;standard&#x60;(deprecated), and &#x60;none&#x60;. &#x60;none&#x60; means that an asset *does not* have mp4 support, so submitting a request with &#x60;mp4_support&#x60; set to &#x60;none&#x60; will delete the mp4 assets from the asset in question.
* @param ASSET_ID The asset ID. (required)
* @param updateAssetMP4SupportRequest (required)
* @return APIupdateAssetMp4SupportRequest
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/mux/sdk/models/Asset.java
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,13 @@ public MasterAccessEnum read(final JsonReader jsonReader) throws IOException {
public enum Mp4SupportEnum {
STANDARD("standard"),

NONE("none");
NONE("none"),

CAPPED_1080P("capped-1080p"),

AUDIO_ONLY("audio-only"),

AUDIO_ONLY_CAPPED_1080P("audio-only,capped-1080p");

private String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public enum NameEnum {

HIGH_MP4("high.mp4"),

AUDIO_M4A("audio.m4a");
AUDIO_M4A("audio.m4a"),

CAPPED_1080P_MP4("capped-1080p.mp4");

private String value;

Expand Down
14 changes: 10 additions & 4 deletions src/main/java/com/mux/sdk/models/CreateAssetRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,19 @@ public class CreateAssetRequest {
private String passthrough;

/**
* 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&#39; 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.
* Specify what level of support for mp4 playback. * The &#x60;capped-1080p&#x60; option produces a single MP4 file, called &#x60;capped-1080p.mp4&#x60;, with the video resolution capped at 1080p. This option produces an &#x60;audio.m4a&#x60; file for an audio-only asset. * The &#x60;audio-only&#x60; option produces a single M4A file, called &#x60;audio.m4a&#x60; for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The &#x60;audio-only,capped-1080p&#x60; option produces both the &#x60;audio.m4a&#x60; and &#x60;capped-1080p.mp4&#x60; files. Only the &#x60;capped-1080p.mp4&#x60; file is produced for a video-only asset, while only the &#x60;audio.m4a&#x60; file is produced for an audio-only asset. The &#x60;standard&#x60;(deprecated) option produces up to three MP4 files with different levels of resolution (&#x60;high.mp4&#x60;, &#x60;medium.mp4&#x60;, &#x60;low.mp4&#x60;, or &#x60;audio.m4a&#x60; for an audio-only asset). MP4 files are not produced for &#x60;none&#x60; (default). In most cases you should use our default HLS-based streaming playback (&#x60;{playback_id}.m3u8&#x60;) which can automatically adjust to viewers&#39; 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.
*/
@JsonAdapter(Mp4SupportEnum.Adapter.class)
public enum Mp4SupportEnum {
NONE("none"),

STANDARD("standard");
STANDARD("standard"),

CAPPED_1080P("capped-1080p"),

AUDIO_ONLY("audio-only"),

AUDIO_ONLY_CAPPED_1080P("audio-only,capped-1080p");

private String value;

Expand Down Expand Up @@ -377,11 +383,11 @@ public CreateAssetRequest mp4Support(Mp4SupportEnum mp4Support) {
}

/**
* 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&#39; 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.
* Specify what level of support for mp4 playback. * The &#x60;capped-1080p&#x60; option produces a single MP4 file, called &#x60;capped-1080p.mp4&#x60;, with the video resolution capped at 1080p. This option produces an &#x60;audio.m4a&#x60; file for an audio-only asset. * The &#x60;audio-only&#x60; option produces a single M4A file, called &#x60;audio.m4a&#x60; for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The &#x60;audio-only,capped-1080p&#x60; option produces both the &#x60;audio.m4a&#x60; and &#x60;capped-1080p.mp4&#x60; files. Only the &#x60;capped-1080p.mp4&#x60; file is produced for a video-only asset, while only the &#x60;audio.m4a&#x60; file is produced for an audio-only asset. The &#x60;standard&#x60;(deprecated) option produces up to three MP4 files with different levels of resolution (&#x60;high.mp4&#x60;, &#x60;medium.mp4&#x60;, &#x60;low.mp4&#x60;, or &#x60;audio.m4a&#x60; for an audio-only asset). MP4 files are not produced for &#x60;none&#x60; (default). In most cases you should use our default HLS-based streaming playback (&#x60;{playback_id}.m3u8&#x60;) which can automatically adjust to viewers&#39; 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 mp4Support
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "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.")
@ApiModelProperty(value = "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. ")

public Mp4SupportEnum getMp4Support() {
return mp4Support;
Expand Down
Loading

0 comments on commit a7f4fb0

Please sign in to comment.