简体   繁体   English

通过Microsoft.DirectX.AudioVideoPlayback显示对视频播放的控制

[英]Display a Control over video playing via Microsoft.DirectX.AudioVideoPlayback

I have a C# Windows Form application that plays local videos. 我有一个播放本地视频的C#Windows窗体应用程序。 I would like to overlay a small form with controls over the video while it is playing. 我想在播放视频时用控制它的形式覆盖一个小表格。 The video is owned by a panel and I have tried to create another panel that contains controls like a button and textbox and tried to brind the whole panel forward and send the video back, but the video stays on top. 该视频归一个面板所有,我试图创建另一个面板,其中包含按钮和文本框之类的控件,并试图向前拉动整个面板并将视频发送回去,但视频始终位于顶部。

Any ideas? 有任何想法吗?

You typically cannot place controls on top of video without having flickers and unwanted artifacts. 通常,如果没有闪烁和不必要的伪影,通常无法将控件放置在视频顶部。 This comes from the fact that video playback allocates specific video hardware resources to stream video and streaming takes place separately from the rest of UI. 这是因为视频回放会分配特定的视频硬件资源以流式传输视频,并且流式传输与UI的其余部分分开进行。 Applications such as players "mix" overlay images (including those which mimic controls) into video or otherwise display them through specialized APIs, those are not regular controls. 诸如播放器之类的应用程序将叠加图像(包括模拟控件的图像)“混合”到视频中,或者通过专用API进行显示,而这些不是常规控件。

The easiest solution for you is to place controls side by side to the video, without putting one on top of the other. 对您来说,最简单的解决方案是将控件并排放置在视频中,而不必一个接一个地放置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Microsoft.DirectX.AudioVideoPlayback播放视频时出错; 程序集版本错误 - Error playing video using Microsoft.DirectX.AudioVideoPlayback; assembly version error SharpDX中的Microsoft.DirectX.AudioVideoPlayback替代 - Microsoft.DirectX.AudioVideoPlayback alternative in SharpDX Microsoft.DirectX.AudioVideoPlayback程序不起作用 - Microsoft.DirectX.AudioVideoPlayback program not working c#使用Microsoft.DirectX.AudioVideoPlayback如何在完成一个视频后播放下一个视频 - c# using Microsoft.DirectX.AudioVideoPlayback how to play next video after one is finished C#winform,使用Microsoft.DirectX.AudioVideoPlayback dll中的Video / Audio类后,应用程序崩溃 - C# winform, App Crashing after using the Video/Audio classes from the Microsoft.DirectX.AudioVideoPlayback dll Activemovie窗口在C#中弹出Microsoft.DirectX.AudioVideoPlayback - Activemovie window pop up Microsoft.DirectX.AudioVideoPlayback in C# 找不到参考Microsoft.DirectX.AudioVideoPlayback - Can't find reference Microsoft.DirectX.AudioVideoPlayback 找不到引用Microsoft.DirectX.AudioVideoPlayback和Microsoft.DirectX - can't find references Microsoft.DirectX.AudioVideoPlayback and Microsoft.DirectX C#Microsoft.DirectX.AudioVideoPlayback.Video参考? - C# Microsoft.DirectX.AudioVideoPlayback.Video reference? 如何显示在Winform中播放的视频的控件? - How do I display a control over a video that is playing in my winform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM