feat: expand platform adapters and preview tooling
This commit is contained in:
@@ -1401,7 +1401,20 @@ public sealed partial class FfmpegService
|
||||
}
|
||||
|
||||
includeNonChatEvents = runtime.RecordingSettings.DanmakuIncludeNonChatEvents;
|
||||
var adapter = adapterFactory.GetByPlatform(liveRoom.Platform);
|
||||
var adapter = adapterFactory.TryGetByPlatform(liveRoom.Platform);
|
||||
if (adapter is null)
|
||||
{
|
||||
await WriteDanmakuSystemLogAsync(
|
||||
SystemLogLevel.Info,
|
||||
$"No danmaku adapter is registered for {liveRoom.Platform}. Recording will continue without live comments.",
|
||||
null,
|
||||
runtime.LiveRoomId,
|
||||
runtime.RecordSessionId,
|
||||
initialTask.Id,
|
||||
cancellationToken);
|
||||
return;
|
||||
}
|
||||
|
||||
runtime.DanmakuConnection = await adapter.ConnectAsync(
|
||||
new DanmakuConnectionContext(
|
||||
liveRoom.Id,
|
||||
|
||||
Reference in New Issue
Block a user