C++渲染行为中的 DirectShow

发布于 2024-09-25 08:22:46 字数 267 浏览 6 评论 0原文

有谁知道如何在 HTML 容器(呃 DIV)中显示 DirectShow 视频,而不是单独的弹出式窗口。

我已经完成了运行自定义渲染行为所需的所有操作,它包括所有接口和事件处理,但在互联网和我拥有的书籍中都找不到与我的问题相关的任何内容。

任何人都可以给我提示我需要做什么?

聚苯乙烯 在 IHTMLPainter 上设置 IFlags 时,MSDN 文章仅提到 DirectDraw 和 Direct3D - 但也许这是我正在寻找的错误位置:-)

问候。

Does anyone know how to display DirectShow video in HTML container (e.h. DIV) instead of separate pop-up-like window.

Already I did all the things needed to run custom Rendering Behavior, it includes all interfaces and events handling, but cannot find anything related with my problem neither in the Internet nor in books I have.

Anyone can give me a hint what I need to do?

P.S.
MSDN articles mention only DirectDraw and Direct3D when setting IFlags on IHTMLPainter - but maybe it's a wrong place I'm looking for :-)

Regards.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

落墨 2024-10-02 08:22:46

总的来说,这是一个有点混乱的话题。据我所知,您的选择是自定义 ActiveX 控件(哎呀......一般来说,这种方法是一场后勤噩梦)或利用现有的播放器(如 Silverlight 或 Flash)。

Silverlight 不让您控制 DirectShow 级别,但它确实通过 MediaStreamSource 可能会满足您的需求。一旦您的音频/视频位于 Silverlight 中,您就可以使用各种高级叠加层和界面元素选项。

In general, this is sort of a messy topic. As far as I know, your options are a custom activex control (yuck...in general, this approach is a logistical nightmare) or leveraging an existing player like Silverlight or Flash.

Silverlight doesn't give you control on a DirectShow level, but it does have additional support through the MediaStreamSource that may meet your needs. And once your audio/video is in Silverlight, you have all sorts of options for advanced overlays and interface elements.

冷弦 2024-10-02 08:22:46

我不会评论Silverlight,因为我没有使用它的经验,但我不同意kidjan 关于使用ActiveX 控件的总结。

自定义 ActiveX 控件为我们公司提供了多种用途 - 包括本机应用程序、托管应用程序、网页...

使用 ActiveX 控件的美妙之处在于您可以完全控制播放器中的代码、流身份验证机制、渲染 。

我在不到一个月的时间内编写了整个播放器(包括网络代码),然后在不到一周的时间内将其包装在 COM 控件中

但不要抱有任何幻想,DirectShow 和 COM 编程并不容易。这完全取决于权衡 - Flash 或 Silverlight 解决方案可能会让您快速上手。 ActiveX ctrl 将为您提供完全控制。

我还读到 HTML5 标准将包括对嵌入视频内容的支持(!)可能值得研究,尽管我不知道有多少浏览器支持(新兴)标准。

I won't comment on Silverlight, as I have no experience of it, but I wouldn't agree with kidjan's summary of using an ActiveX control.

A custom ActiveX control has served our company well for many uses - including native apps, managed apps, web pages ...

The beauty of using an ActiveX control is that you have total control over the code in your player, stream authentication mechanisms, rendering capabilities etc.

I wrote an entire player in less than a month (network code included), then wrapped it in a COM control in less than a week.

Be under no illusion though, DirectShow and COM programming isn't easy. It's all about trade off - a Flash or Silverlight solution will probably get you going quickly. An ActiveX ctrl will give you total control.

I also read that HTML5 standard will include support for embedding video content(!) Might be worth looking into, although I don't know how many browsers support the (emerging) standard.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文