Skip to content

Commit 45d383e

Browse files
authored
0.11.0 (#54)
1 parent 7099e11 commit 45d383e

13 files changed

+96
-36
lines changed

Mux.Csharp.Sdk.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk", "src\Mux.Csharp.Sdk\Mux.Csharp.Sdk.csproj", "{3E5142F7-8868-4334-8E41-CAC9CC52147B}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk", "src\Mux.Csharp.Sdk\Mux.Csharp.Sdk.csproj", "{D5B098A8-3C38-43E5-8054-2DC6D5E7F8FF}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk.Test", "src\Mux.Csharp.Sdk.Test\Mux.Csharp.Sdk.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{3E5142F7-8868-4334-8E41-CAC9CC52147B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{3E5142F7-8868-4334-8E41-CAC9CC52147B}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{3E5142F7-8868-4334-8E41-CAC9CC52147B}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{3E5142F7-8868-4334-8E41-CAC9CC52147B}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{D5B098A8-3C38-43E5-8054-2DC6D5E7F8FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{D5B098A8-3C38-43E5-8054-2DC6D5E7F8FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{D5B098A8-3C38-43E5-8054-2DC6D5E7F8FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{D5B098A8-3C38-43E5-8054-2DC6D5E7F8FF}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Mux is how developers build online video. This API encompasses both Mux Video an
1616
**PLEASE NOTE:** This is an early build of the Mux C# SDK, as evidenced by its pre-1.0 status, but we're reasonably certain of its stability and usability against the Mux API.. Documentation is currently best-effort, but it'll improve over time! Instead of contacting Mux Support, please file an issue on this repository or email [Mux DevEx]([email protected]) for assistance.
1717

1818
- API version: v1
19-
- SDK version: 0.10.0
19+
- SDK version: 0.11.0
2020
[https://docs.mux.com](https://docs.mux.com)
2121

2222
<a name="frameworks-supported"></a>

docs/AssetsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ Name | Type | Description | Notes
10221022
10231023
Update MP4 support
10241024

1025-
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.
1025+
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.
10261026

10271027
### Example
10281028
```csharp

docs/CreateAssetRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**PlaybackPolicy** | [**List&lt;PlaybackPolicy&gt;**](PlaybackPolicy.md) | 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]
99
**PerTitleEncode** | **bool** | | [optional]
1010
**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]
11-
**Mp4Support** | **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&#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]
11+
**Mp4Support** | **string** | 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]
1212
**NormalizeAudio** | **bool** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to false]
1313
**MasterAccess** | **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]
1414
**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]

docs/UpdateAssetMP4SupportRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Mp4Support** | **string** | String value for the level of mp4 support | [optional]
7+
**Mp4Support** | **string** | 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]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

gen/generator-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"!!source": "https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/csharp-netcore.md",
3-
"packageVersion": "0.10.0",
3+
"packageVersion": "0.11.0",
44
"caseInsensitiveResponseHeaders": true,
55
"disallowAdditionalPropertiesIfNotPresent": false,
66
"licenseID": "MIT",

src/Mux.Csharp.Sdk/Api/AssetsApi.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public interface IAssetsApiSync : IApiAccessor
328328
/// Update MP4 support
329329
/// </summary>
330330
/// <remarks>
331-
/// 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.
331+
/// 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.
332332
/// </remarks>
333333
/// <exception cref="Mux.Csharp.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
334334
/// <param name="ASSET_ID">The asset ID.</param>
@@ -340,7 +340,7 @@ public interface IAssetsApiSync : IApiAccessor
340340
/// Update MP4 support
341341
/// </summary>
342342
/// <remarks>
343-
/// 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.
343+
/// 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.
344344
/// </remarks>
345345
/// <exception cref="Mux.Csharp.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
346346
/// <param name="ASSET_ID">The asset ID.</param>
@@ -683,7 +683,7 @@ public interface IAssetsApiAsync : IApiAccessor
683683
/// Update MP4 support
684684
/// </summary>
685685
/// <remarks>
686-
/// 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.
686+
/// 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.
687687
/// </remarks>
688688
/// <exception cref="Mux.Csharp.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
689689
/// <param name="ASSET_ID">The asset ID.</param>
@@ -696,7 +696,7 @@ public interface IAssetsApiAsync : IApiAccessor
696696
/// Update MP4 support
697697
/// </summary>
698698
/// <remarks>
699-
/// 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.
699+
/// 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.
700700
/// </remarks>
701701
/// <exception cref="Mux.Csharp.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
702702
/// <param name="ASSET_ID">The asset ID.</param>
@@ -2915,7 +2915,7 @@ public Mux.Csharp.Sdk.Client.ApiResponse<AssetResponse> UpdateAssetMasterAccessW
29152915
}
29162916

29172917
/// <summary>
2918-
/// 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.
2918+
/// Update MP4 support 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.
29192919
/// </summary>
29202920
/// <exception cref="Mux.Csharp.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
29212921
/// <param name="ASSET_ID">The asset ID.</param>
@@ -2928,7 +2928,7 @@ public AssetResponse UpdateAssetMp4Support(string ASSET_ID, UpdateAssetMP4Suppor
29282928
}
29292929

29302930
/// <summary>
2931-
/// 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.
2931+
/// Update MP4 support 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.
29322932
/// </summary>
29332933
/// <exception cref="Mux.Csharp.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
29342934
/// <param name="ASSET_ID">The asset ID.</param>
@@ -2996,7 +2996,7 @@ public Mux.Csharp.Sdk.Client.ApiResponse<AssetResponse> UpdateAssetMp4SupportWit
29962996
}
29972997

29982998
/// <summary>
2999-
/// 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.
2999+
/// Update MP4 support 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.
30003000
/// </summary>
30013001
/// <exception cref="Mux.Csharp.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
30023002
/// <param name="ASSET_ID">The asset ID.</param>
@@ -3010,7 +3010,7 @@ public Mux.Csharp.Sdk.Client.ApiResponse<AssetResponse> UpdateAssetMp4SupportWit
30103010
}
30113011

30123012
/// <summary>
3013-
/// 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.
3013+
/// Update MP4 support 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.
30143014
/// </summary>
30153015
/// <exception cref="Mux.Csharp.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
30163016
/// <param name="ASSET_ID">The asset ID.</param>

src/Mux.Csharp.Sdk/Client/Configuration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration
3232
/// Version of the package.
3333
/// </summary>
3434
/// <value>Version of the package.</value>
35-
public const string Version = "0.10.0";
35+
public const string Version = "0.11.0";
3636

3737
/// <summary>
3838
/// Identifier for ISO 8601 DateTime Format
@@ -102,7 +102,7 @@ public class Configuration : IReadableConfiguration
102102
public Configuration()
103103
{
104104
Proxy = null;
105-
UserAgent = "Mux C# | 0.10.0";
105+
UserAgent = "Mux C# | 0.11.0";
106106
BasePath = "https://api.mux.com";
107107
DefaultHeaders = new ConcurrentDictionary<string, string>();
108108
ApiKey = new ConcurrentDictionary<string, string>();
@@ -447,7 +447,7 @@ public static string ToDebugReport()
447447
report += " OS: " + System.Environment.OSVersion + "\n";
448448
report += " .NET Framework Version: " + System.Environment.Version + "\n";
449449
report += " Version of the API: v1\n";
450-
report += " SDK Package Version: 0.10.0\n";
450+
report += " SDK Package Version: 0.11.0\n";
451451

452452
return report;
453453
}

src/Mux.Csharp.Sdk/Model/Asset.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,25 @@ public enum Mp4SupportEnum
263263
/// Enum None for value: none
264264
/// </summary>
265265
[EnumMember(Value = "none")]
266-
None = 2
266+
None = 2,
267+
268+
/// <summary>
269+
/// Enum Capped1080p for value: capped-1080p
270+
/// </summary>
271+
[EnumMember(Value = "capped-1080p")]
272+
Capped1080p = 3,
273+
274+
/// <summary>
275+
/// Enum AudioOnly for value: audio-only
276+
/// </summary>
277+
[EnumMember(Value = "audio-only")]
278+
AudioOnly = 4,
279+
280+
/// <summary>
281+
/// Enum AudioOnlycapped1080p for value: audio-only,capped-1080p
282+
/// </summary>
283+
[EnumMember(Value = "audio-only,capped-1080p")]
284+
AudioOnlycapped1080p = 5
267285

268286
}
269287

0 commit comments

Comments
 (0)