packServer/desktop/Views/PlaybackPreviewWindow.xaml
liufumingren e8923dbe56 feat(desktop): 多路回放按 OSD 时间对齐,合并时摆回同一时间轴
- 每路下载后读 NET_DVR_GetPlayBackOsdTime 得到真实起播时间,算出相对请求起点的偏移,
  返回 PlaybackClip(Path, StartOffset);合并时按偏移补 -itsoffset,画面不再错位
- 各路都从自己的关键帧起播 → 单路内容多了就裁掉,最后一路固定以收尾时间对齐
- 回放预览改成多路同播:每路独立 FfmpegStream 订阅帧、按第一帧到达时间对齐,
  队列超长时跳到最新帧(追帧),窗口结束即停;去掉「关闭」按钮改由流程自动关闭
- FfmpegStream 支持多订阅者(同一 rtsp 只拉一次),避免多路预览重复解码

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-21 00:47:43 +08:00

18 lines
874 B
XML

<Window x:Class="YuncangTrace.LocalService.Views.PlaybackPreviewWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="回放预览" Height="760" Width="1180"
WindowStartupLocation="CenterOwner"
Background="#101216">
<DockPanel>
<DockPanel DockPanel.Dock="Top" Margin="12,10,12,6">
<TextBlock x:Name="TitleText" Foreground="#E5E7EB" FontSize="13"
VerticalAlignment="Center" TextTrimming="CharacterEllipsis"
Text="回放预览" />
</DockPanel>
<Viewbox Stretch="Uniform" StretchDirection="Both" Margin="12" HorizontalAlignment="Center">
<Canvas x:Name="Canvas" Background="Black" Width="1920" Height="1080" />
</Viewbox>
</DockPanel>
</Window>