Skip to content

Commit 7ad2dd5

Browse files
authored
v0.16.0 (#65)
* v0.16.0 * try to unblock these tests * add a bit more logging * try to fix test * make our test fail if assets error for some reason * remove added logging and fix syntax
1 parent b50165c commit 7ad2dd5

File tree

10 files changed

+63
-97
lines changed

10 files changed

+63
-97
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", "{34EE238D-C4B0-4067-8947-2553C44DBA1F}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk", "src\Mux.Csharp.Sdk\Mux.Csharp.Sdk.csproj", "{2D50A54C-78BD-4D1F-B1F4-10F733BD1B27}"
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-
{34EE238D-C4B0-4067-8947-2553C44DBA1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{34EE238D-C4B0-4067-8947-2553C44DBA1F}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{34EE238D-C4B0-4067-8947-2553C44DBA1F}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{34EE238D-C4B0-4067-8947-2553C44DBA1F}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{2D50A54C-78BD-4D1F-B1F4-10F733BD1B27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{2D50A54C-78BD-4D1F-B1F4-10F733BD1B27}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{2D50A54C-78BD-4D1F-B1F4-10F733BD1B27}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{2D50A54C-78BD-4D1F-B1F4-10F733BD1B27}.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
@@ -20,7 +20,7 @@ Mux is how developers build online video. This API encompasses both Mux Video an
2020
At this moment, this SDK is not suitable for parsing or modeling webhook payloads, due to some incompatibilities in our API spec and our SDK generation tooling. We are working on resolving these issues, but for now you should only use this SDK for Mux's REST APIs.
2121

2222
- API version: v1
23-
- SDK version: 0.15.0
23+
- SDK version: 0.16.0
2424
[https://docs.mux.com](https://docs.mux.com)
2525

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

docs/MetricsApi.md

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

docs/VideoView.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ Name | Type | Description | Notes
165165
**AdPlaybackFailureErrorTypeId** | **int?** | | [optional]
166166
**ViewContentStartupTime** | **int?** | | [optional]
167167
**AdPrerollStartupTime** | **int?** | | [optional]
168-
**AdWatchTime** | **int?** | | [optional]
169-
**ViewContentWatchTime** | **int?** | | [optional]
170168
**ViewDropped** | **bool** | | [optional]
171169

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

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.15.0",
3+
"packageVersion": "0.16.0",
44
"caseInsensitiveResponseHeaders": true,
55
"disallowAdditionalPropertiesIfNotPresent": false,
66
"licenseID": "MIT",

src/Mux.Csharp.Sdk.Test/Video/ExerciseAssets.cs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void Exercise()
2020

2121
#region Asset creation
2222
var inputA = new InputSettings(
23-
url: "https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4"
23+
url: "https://storage.googleapis.com/muxdemofiles/mux.mp4"
2424
);
2525
var inputB = new InputSettings(
2626
url: "https://tears-of-steel-subtitles.s3.amazonaws.com/tears-fr.vtt",
@@ -55,12 +55,14 @@ public void Exercise()
5555
Assert.NotNull(asset);
5656
Assert.Equal(assetId, asset.Data.Id);
5757

58-
if (asset.Data.Status != Asset.StatusEnum.Ready) {
58+
if (asset.Data.Status == Asset.StatusEnum.Preparing) {
5959
Console.WriteLine(" - waiting for asset to be ready...");
6060
Thread.Sleep(2000);
6161
}
6262
}
63-
while (asset == null || asset.Data.Status != Asset.StatusEnum.Ready);
63+
while (asset == null || asset.Data.Status == Asset.StatusEnum.Preparing);
64+
65+
Assert.Equal(asset.Data.Status, Asset.StatusEnum.Ready);
6466
Console.WriteLine("get-asset OK ✅");
6567

6668
var assetInputInfo = assets.GetAssetInputInfo(assetId);
@@ -72,8 +74,8 @@ public void Exercise()
7274
#region Clipping
7375
var clipInput = new InputSettings(
7476
url: $"mux://assets/{assetId}",
75-
startTime: 0.0,
76-
endTime: 0.5
77+
startTime: 20.0,
78+
endTime: 25.0
7779
);
7880
var clipRequest = new CreateAssetRequest(input: new List<InputSettings>() { clipInput });
7981
var clipResponse = assets.CreateAsset(clipRequest);
@@ -88,12 +90,14 @@ public void Exercise()
8890
Assert.NotNull(clipAsset);
8991
Assert.Equal(clipAssetId, clipAsset.Data.Id);
9092

91-
if (clipAsset.Data.Status != Asset.StatusEnum.Ready) {
93+
if (clipAsset.Data.Status == Asset.StatusEnum.Preparing) {
9294
Console.WriteLine(" - waiting for clipped asset to be ready...");
9395
Thread.Sleep(2000);
9496
}
9597
}
96-
while (clipAsset == null || clipAsset.Data.Status != Asset.StatusEnum.Ready);
98+
while (clipAsset == null || clipAsset.Data.Status == Asset.StatusEnum.Preparing);
99+
100+
Assert.Equal(clipAsset.Data.Status, Asset.StatusEnum.Ready);
97101
#endregion
98102

99103
// TODO: do the rest of ExerciseAssets

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

Lines changed: 32 additions & 32 deletions
Large diffs are not rendered by default.

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.15.0";
35+
public const string Version = "0.16.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.15.0";
105+
UserAgent = "Mux C# | 0.16.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.15.0\n";
450+
report += " SDK Package Version: 0.16.0\n";
451451

452452
return report;
453453
}

0 commit comments

Comments
 (0)