Click here to Skip to main content
15,883,770 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?.

1 solution

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.

Already Sacha has an example for you,

Stream YouTube Videos in WPF[^]

Mark it as answer if it is helpful
Share this answer
Juan Pablo G.C. 16-May-11 8:12am    
The Sacha ones, simply embeds but doesnt manage the video, in simple cases is useful. Later I will test using the WPF MediaElement and watch it Play, pause and else buttons are compatible with the streaming. I hope...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900