i get video url from webservice. Can we play the video on browserfield?
BrowserField bf = new BrowserField();
bf.requestContent(url);
add(bf);
When i execute in simulator. The video image display and follow a error occur that "Access violation reading from 0x00000004".
Can i check on device.? its affect any problem on my device from this error.? Pls help me.
You need to pay it through the built-in browser which automatically opens the built-in video player. Call it like this: Browser.getDefaultSession().displayPage(url);
you cannot access the video from the browser field,this is my opinion.
Just pass the video url straightly in the browser. It automatically opens the default video player and it plays the video..
Related
I know about how to play video in device. But Here I just want to know that is it possible to get streaming URL from any YouTube Video? Then how can I do it, I tried to search on google but I can not able to find my solution.
Generally I does not want to play direct stream from video, actually I want to save this URL (stream) in my buffer memory OR whatever temporary file and whenever user click on particular button then particular URL Stream is play.
Al Last I got YouTube APIs + iPhone = Cool mobile apps. But I am not sure that it's helpful in my case or not ? If anybody who worked on this API then please suggest me, Otherwise How can I get streaming URL.
Your suggestion will be appreciated.
Thanks in advance.
http://www.youtube.com/get_video_info?&video_id={VIDEO_ID}
This will not work on all files, some will display the message "This+video+contains+content+from.....". But many will work.
Is it possible to get streaming URL from any YouTube Video? - No, it is not possible without hurting the terms of service of youtube. Google has built the business model of youtube around the advertisements all over youtube, in-video banners and video ads and they want your user to see their ads. This is the reason they completely hide the video stream and would ban your app if you anyway access and stream it directly.
The only consented way to play youtube videos on iOS is to embed it into an iframe of a web view.
I am trying to link to a specific video from facebook directly in iOS.
There are apps in AppStore that do exactly that (feks iLoaderLite).
I have the id of the video, and when i use the link on the mac, the video opens (using flash i suppose).
The link is "http://www.facebook.com/video/embed?video_id=1432879026926621".
When I use the same link in a webView, the webView responds by requiring flash, which of course is not available for the iOS.
If I use MPMoviePlayer, nothing is loaded and I have a black screen since it cannot decode the flash video.
How do can I link to a Facebook video in iOS?
Anybody has an idea???
Thanks in advance
Found it. Using the Graph Api explorer tool for facebook (google it), you can enter the video id, and search for the video. If you output "source" you get a link with the video source in mp4. You can add parameters, and search for other stuff too.
I am writing application to show youtube videos.
In WPF on windows 7 I use WebBrowser control and it works fine. But when I use WinRT WebView control to show swf file from youtube - it doesn't work. Only clear white screen.
I use approach like that : http://blog.tedd.no/2010/06/27/embedding-youtube-in-wpf-webbrowser-control/
What shall I do to have an oppotunity to show videos in Metro Style Application?
Thank you
try this one from the mytoolkit library: http://mytoolkit.codeplex.com/wikipage?title=YouTube
The default youtube video player (unless the user has opted into the HTML5 preview) is a Flash video control. Flash is not supported in the Windows Application Store ("Metro") shell version of IE, or in the WebView control.
But what you can do is request youtube to use the HTML5 video player (HTML5 video is supported by the App Store version of IE and WebView). For example, this video does play properly for me:
<WebView Source="http://www.youtube.com/watch?v=cTl3U6aSd2w&html5=True" />
So you should be able to embed a video using a webview, you just have to force the webview to use the HTML5 viewer. This can also be done as a parameter to the embed URL: see Force HTML5 youtube video
However, this setting only says to prefer the HTML5 player. Youtube may still attempt to use the flash player on some videos, which will not work in all cases.
You can alternatively also play the video through "mediaelement" to play youtube video, though you'd have to parse the youtube video stream first. See my W8 app "RedditTV"
How can I play YouTube videos in a Windows 8 html/javascript app? I have the clip's id and I just want to play it. Perhaps via html5's video tag?
I've tried the iframe api, but failed to get it to work. I've also made a try on the javascript api, but it failed to load javascript from anther location.
Any help on the subject would be very appreciated!
I developed a YouTube class for Windows Phone which gets the MP4 link of a YouTube movie. Maybe you can use this code and start the video app with the MP4 link or set the source of a media element (if existent in Win8)?
If there's a way to start the video app with a predefined MP4-URL I can rewrite the code for Windows 8.
http://mytoolkit.codeplex.com/wikipage?title=YouTube
UPDATE: I've updated the code. Now simply load the URL with this async method:
var url = await YouTube.GetVideoUriAsync("youtube_id");
myMediaElement.Source = url.Uri;
myMediaElement is a XAML MediaElement control.
Check out the whole library from the project's Subversion repository: http://mytoolkit.codeplex.com
Update: Sorry it's C# only, you have to port it to Javascript...
I want to play video from a URL. How do I do this?
get the url of video. If you have the vid in local file system fetch the path of it. And than open it with blackberry's default browser. The browser will automatically open it in default media player