I am trying to make a youtube url streamer application in windows form application using c#.net.
我试图使用c#.net在Windows窗体应用程序中制作一个youtube url流光应用程序。
I am able to play local videos using windows media player (COM COMPONENT) in built in visual studio.
我可以在内置的visual studio中使用Windows媒体播放器(COM COMPONENT)播放本地视频。
But I am not getting how to stream url (youtube address) in windows media player. If there is any other better way please suggest.
但我没有得到如何在Windows媒体播放器中流式传输URL(youtube地址)。如果还有其他更好的方法请建议。
1 个解决方案
#1
0
Add toolbox item by right clicking on any control -> choose item -> COM component -> Shockwave Flash Object, Drag and drop Shockwave Flash Object control on your form, paste YouTube URL to movie property of Shockwave Flash Object control, But don’t forget to delete “watch?” and “=” From URL , For example if YouTube video URL is http://www.youtube.com/watch?v=zwkO4-s3OQ0 then remove watch? and then replace = sign with / sign, so URL will become http://www.youtube.com/v/zwkO4-s3OQ0 That’s it.
通过右键单击任何控件添加工具箱项 - >选择项目 - > COM组件 - > Shockwave Flash对象,在表单上拖放Shockwave Flash对象控件,将YouTube URL粘贴到Shockwave Flash对象控件的电影属性,但不要忘记删除“观看?”和“=”来自网址,例如,如果YouTube视频网址是http://www.youtube.com/watch?v=zwkO4-s3OQ0,那么删除观看?然后用/符号替换= sign,这样URL就会变成http://www.youtube.com/v/zwkO4-s3OQ0就是这样。
#1
0
Add toolbox item by right clicking on any control -> choose item -> COM component -> Shockwave Flash Object, Drag and drop Shockwave Flash Object control on your form, paste YouTube URL to movie property of Shockwave Flash Object control, But don’t forget to delete “watch?” and “=” From URL , For example if YouTube video URL is http://www.youtube.com/watch?v=zwkO4-s3OQ0 then remove watch? and then replace = sign with / sign, so URL will become http://www.youtube.com/v/zwkO4-s3OQ0 That’s it.
通过右键单击任何控件添加工具箱项 - >选择项目 - > COM组件 - > Shockwave Flash对象,在表单上拖放Shockwave Flash对象控件,将YouTube URL粘贴到Shockwave Flash对象控件的电影属性,但不要忘记删除“观看?”和“=”来自网址,例如,如果YouTube视频网址是http://www.youtube.com/watch?v=zwkO4-s3OQ0,那么删除观看?然后用/符号替换= sign,这样URL就会变成http://www.youtube.com/v/zwkO4-s3OQ0就是这样。