Is there a way to play YouTube video in webBrowser control? Because when i tap on watch video nothing happens...
Thanks!
As far as I know Windows Phone 7 does not support Flash yet.
Take a look at this:
http://answers.microsoft.com/en-us/winphone/forum/wp7-wpdevices/will-windows-phone-7-play-you-tube-and-flash/29c69dc1-658f-4729-b24d-67b46a4138d2
Related
I'm looking for a way to stream Vimeo videos using my C# application. At the moment I am playing back videos locally using a Windows Media Player widget in a Windows Forms application.
I suppose I could use a WebBrowser in Form window if I had to, but am looking for something a bit more native than that if possible.
I found that the Windows Media Player control was able to play back Vimeo links directly.
A Vimeo Pro account is required in order to get the links to videos that can be used to stream videos using "3rd party players".
I have a WinForms WebBrowser control in a WPF WindowsFormsHost, but I've verified the problem in straight WinForms as well as several different computers.
What happens is whenever a webpage is playing music and I start scrolling the page the audio freezes and repeats the same short sample over and over again. One of the most pronounced sites that exhibits this is Google Play Music.
Is there anything I can do to mitigate this problem?
Try enabling GPU rendering for your WebBrowser control via FEATURE_GPU_RENDERING feature. Here is how to do it, and there's a bunch of other features to play with.
How can I implement something like DreamScene using C# ?
I want to play a video in front of the wallpaper but below the icons on the desktop.
This article explains how to draw you windows under the desktop icons in Windows 8, and also links to an example of how to do the same in Windows 7/Vista/XP.
You have to use lots of interop and handlers and stuff, so it's not easy or clean... But can be done :P
You can use the media player class:
https://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer(v=vs.110).aspx
to play a video. To hide the icon from the tool desktop, edit the property ShowInTaskBar of the form.
I have a webbrowsercontrol and I want to play videos from youtube and vimeo.
At first I couldn't even load youtube.com and it was saying that I had to eneble javascript, so I did and I added this IsScriptEnabled="True" property in <phone:WebBrowser/> and then the page loaded, But when I press on a video to play it says "video not available" on youtube, and "your phone can't play this video" on dailymotion.
I used this code:
VideoStream.Navigate(new Uri("http://www.dailymotion.com/", UriKind.Absolute));
I'm not sure about the exact problem but i think it's flash related. I had the same problem when I used WebBrowser.
If noone else has a better solution you could at least use this solution for youtube videos:
a video link ends like this: watch?v=XXXXX
just add &html5=1 to enforce html5 video playback. --> watch?v=XXXXX&html5=1
If you want to only show the video: --> https://www.youtube.com/embed/XXXX?&autoplay=1&rel=0&html5=1
As far as I know, if the Internet explorer in your machine can play the flash video, then the “WebBrowser” control in .Net framework can also do this, so please make sure the IE in your machine works fine with the flash ActiveX control.
I want to play youtube video in windows 8 application with XAML and c#.
I don't want to play youtube video from WebView control of windows 8 i want to play video from my own control is that possible ? can anyone help me for this please ?
Try MyToolkit on CodePlex. You can use GetVideoUriAsync to get a URI to feed to a MediaElement.
var url = await YouTube.GetVideoUriAsync(youTubeId, YouTubeQuality.Quality1080P);
var player = new MediaElement();
player.Source = url.Uri;
Yes this is possible you can take a look on these three links:
YouTube API
Manage YouTube Over Code
Example how to Play Videos with YouTube API
First thing its YouTube TOS violation.
But if you really want to do that, first you need to extract the streaming URL from the response from YouTube when you do a request.Check this code and port it to c#
youtube-dl