Windows窗体或WPF中的Yotube AxShockwaveflash控件 [英] Yotube AxShockwaveflash control in windows form or WPF

查看:139
本文介绍了Windows窗体或WPF中的Yotube AxShockwaveflash控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我已经进行了一些测试,以便在WPF Windows Forms宿主解决方案和Windows Forms解决方案中将youtube Flash控件嵌入AxShockWave控件中.

我无法访问callfunction方法中的任何函数.它总是返回我COM错误.是否存在任何安全原因,或者无法以这种方式访问​​,因为youtube已加载了视频,但是如果可以通过播放,暂停或其他方式使用CallFunction进行控制,那就太好了.有没有人找到使CallFunction起作用的解决方案?.

Hello, I''ve making several tests in order to get a youtube flash control embedded in a AxShockWave Control, in a WPF Windows Forms host solution and in a Windows Forms solution.

I cannot access to any function in the callfunction methods. it always returns me COM error. Is there any security reason, or it is not possible to access in this way, because the youtube loads the video, but it would be great if it were possible to control with play, pause and else using CallFunction. Does anyone found the solution to make CallFunction work?.

推荐答案

为什么不能使用Youtube Url并使用WPF MediaElement控件对其进行流式处理?在这种情况下,您可以对播放器进行愚蠢的控制.

Youtube Video下载器的数量为n.如果可以做到,则应该可以进行流媒体播放.

但是请确保在流式传输之前先阅读Youtube的版权政策.

更新:
萨莎(Sacha)已经为您提供了一个例子,

在WPF中流式传输YouTube视频 [
Why can''t you use the Youtube Url and stream it using WPF MediaElement control? In that case you would have fool control on the Player.

There are ''n'' number of Youtube Video downloader. If there can do it, streaming should be possible.

But make sure you read the copyrights policies of Youtube before streaming.

Update:
Already Sacha has an example for you,

Stream YouTube Videos in WPF[^]

Mark it as answer if it is helpful


这篇关于Windows窗体或WPF中的Yotube AxShockwaveflash控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆