Phase1_Day3_build_fix

This commit is contained in:
2026-05-16 23:37:17 +08:00
parent 035ff4b8c2
commit 0ea2882627
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ using IntegrationGateway.Core.Abstractions;
using IntegrationGateway.Core.Infrastructure; using IntegrationGateway.Core.Infrastructure;
using IntegrationGateway.Core.Models; using IntegrationGateway.Core.Models;
using System.Text.Json; using System.Text.Json;
using System.Net.Http.Json;
namespace IntegrationGateway.Adapters.Owl; namespace IntegrationGateway.Adapters.Owl;
@@ -125,7 +126,7 @@ public class OwlAdapter : IHasFlatDevices, IHasStreams, IAcceptsMetadataPush
var client = await _auth.GetAuthenticatedClientAsync(); var client = await _auth.GetAuthenticatedClientAsync();
var resp = await client.PostAsync($"/channels/{channelId}/play", null); var resp = await client.PostAsync($"/channels/{channelId}/play", null);
resp.EnsureSuccessStatusCode(); resp.EnsureSuccessStatusCode();
var json = await resp.Content.GetStringAsync(); var json = await resp.Content.ReadAsStringAsync();
var play = JsonSerializer.Deserialize<OwlPlayResponse>(json)!; var play = JsonSerializer.Deserialize<OwlPlayResponse>(json)!;
return MapStreamUrls(play); return MapStreamUrls(play);
} }

View File

@@ -1,6 +1,7 @@
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;
using System.Text.Json; using System.Text.Json;
using System.Net.Http.Json;
namespace IntegrationGateway.Adapters.Owl; namespace IntegrationGateway.Adapters.Owl;