I'm programming a Windows 8 RT app that uses the API of Rotten Tomatoes. It gives me access to trailers/clips of the selected movie. I checked out the link and it appears all of the links are online Flash movies.
I tried playing around with the 'WebView' control and the 'MediaElement', but none seem to satisify my needs.
Is it even possible to play Flash movies. If not what are my options?
If you code like this <WebView Source="http://www.rottentomatoes.com/m/last_vegas_2013/trailers/11178829" />, you can see it's opening whole page. Good thing is that video gets play. So you need to remove the non-relevant portion using InvokeScript method & JavaScript. I don't know too much JS otherwise I would have give you proper solution.
I am confident JS will help you, the reason is this app itself. It's basically a Facebook website with RELEVANT portion.
Disclaimer: I am not the owner of that app.
Also check out this feature request.
Related
I want to play youtube movie in my application by using webbrowser.
The problem is about autoplay movies.
I know i can use embeded, but on embeded version its impossible to navigate the website.
Is there any solution how to autoplay youtube movies?
You can use a specific control 'COM' to show a movie 'swf' in a form, called 'Shockwave Flash Object'
And Swf Url Movie:
http://www.youtube.com/v/[CODE VIDEO]&autoplay=1
Google have actually made available an API which allows you to do this kind of thing across all platforms, whether it be in a web or application interface. You can find the documentation for it here. But as a guide, here is what you can do....
All you have to do is replace parts of the URL, which can be done easily with string manipulation. I have specifed link a - which is the normal youtube link, and b - which is the API link which can play in full screen mode (or size of your frame or web browser) and many other features which you can command through the URL.
a - http://www.youtube.com/watch?v=DuLPSz_Hffw
b - http://youtube.googleapis.com/v/DuLPSz_Hffw?autoplay=1&showinfo=0&loop=1
Hope that helps!
I'm currently working on a website project in asp.net that hosts videos in many different languages. They are in a series of 12 videos so I'd like to be able to embed one video player on the web page and then be able to click a next button and the next video in the list would play. I'd also like to be able to do the save thing with a previous button as well. Also is there a way to play and pause the video with custom controls? I did some research on it and I found some answers in Javascript but then I went to the apple documentation and it said you can no longer use it due to security reasons.
Does anyone have any solutions for any of these? Preferably in asp.net C# but anything will help. Thanks!
This should be doable using the code on apple's website. In fact, I just tried it using ordinary anchor hyperlinks to play and pause a movie. Works fine. Didn't try loading a new url, but it should work too. The security restriction only applies to calling javascript from a QuickTime movie. (Which btw can still be achived using an iframe).
I am trying to put a Flash ActiveX control into a Windows Form but I am running into a problem: a lack of documentation. The best I have found is a site called "F-IN-BOX" that has some documentation but much of the API is still a black box. For example, some property will take an integer or a string and provide no clue about what it wants. Another exanple is the FlashVersion() function that inexplicably returns 655361 on version 10.
Incidentally I'm having the same problem with Apple's Quicktime OCX. I've searched both sites and Google and I'm starting to wonder if either of these companies provide documentation for any of their products. Does anybody know where I can find documentation for either of them, even if it's the unofficial variety?
Well once i worked with flash on a windows form, I took this example to get started, and the second link its a flash game being loaded to a winform
http://www.codeproject.com/KB/audio-video/flashexternalapi.aspx
http://www.csharphelp.com/archives/files/archive81/cSharpFlash.zip
Hope this helps anyone, about documentation i didn't find any when working on that project i reached Adobe but i never got an answer from them :/
Alex
Adobe help take a look at this sample. It's very simple and nice to use.
You should stick with ExternalInterfaceProxy all time because it simplifies communication 100x times.
I'm building a WPF application that should be able to play Youtube videos. But there are some problems running the app on Windows 7.
When I follow the article by Sacha Barber it shows a pop-up saying "File download security warning" which isn't very nice, I don't want the user to have to click ok every time.
Then there's a second approach. Use the WebBrowser's NavigateToString property and enter there a full HTML code for a page that plays the Youtube video. Unfortunately, that doesn't work for me at all, all I see is a black space where the video should be.
Have you ever come across anything like this? Thanks a lot.
I wrote a simple YouTube video viewer in WPF, and went down the NavigateToString route and built up the web page source by hand, using the embed code provided by YouTube, and this worked a treat (other than the fact several of the videos on YouTube are marked as unable to embed, so you get a link to view on the full site instead). I created an attached property to avoid any code behind too.
What is the code you are using?
You guys are probably aware of Microsoft Tags.
We have a barcode gun in our office and I would like to read these tags using C#.
Any idea how I can go about doing this?
Thanks
The Microsoft Tag initiative is based around image recognition, a barcode gun won't have any idea of what to do with a 'Tag', but you can use your phone camera. There's a sample app in the Apple App Store if you have an iPhone, not sure if they've written a version for Windows Mobile yet.
The principle is that you can resolve the tag to a short alpha-numeric code (think GUID but smaller) and then look that up using Microsoft's register of tags, using Web Services.
The question is why?
There have been companies spruiking this for years and it just doesn't make sense.
I'd rather have an application that read a URL from a photo, OCR'd it and then punched it into a browser for me. That way you get the ability to click and view, but you don't need a phone in your hand to write down the URL. They're all striving for a vendor lock in.
Call me a luddite or blind to the way of the future but I just don't see this as a "killer app".