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.
Related
i know this is most likely a duplication and i am truly sorry for that but most of the solutions i found was either +7 years outdated, bugged or consume so much memory
all i need is an efficient way to access the webcam to record and display to use it in a computer vision project to detect moving objects and such, with an HD output (using HD camera of course)
also if there is a library that would help with the computer vision that would also be great
any information, tips or experience would be highly appreciated, thanks in advance and have a wonderful day.
You could use AForge.net, it's available as a nuget package and gets the job done.
Here is an example of it. It's a winform application, but I use this library in WPF app as well.
[EDIT] Actually, I think I found what you're looking for, download this. It's a piece of code that has been written for a french azure contest. It's a motion detector written with aforge.net. There is 2 part to it, the first is a wpf client that capture movement. The second is an azure website where the image captured is uploaded automatically.
So far I've been unable to find an answer to my question. I might be blind, or just Googling the completely wrong words, I don't know, but here's the question.
In many apps (Both on iPhone and Android) they have these floating tips that assists the user in using the app. For instance "Touch here to open notifications", and "Touch here to access settings", etc.
Now I'm looking for a solution that would hopefully work for both iPhone, Android and Windows Phone, but an answer to any one platform would be appreciated nonetheless, as I'll presumably be able to translate it into the respective Xamarin code.
Mockup (Taken from some other thread here on SO, that was never answered)
if you want a tip floating on your view you may use PopUpWindow in android. It pretty easy to implement as well
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.
Having searched high and low for native c# hook to webcam, I found 5 basic ways to interact with the camera.
Video for Windows (VFW)
DirectX
avicap32.dll
WIA
3rd party tools
My requirement is to take a photo. The application will be used on some legacy windows XP and Vista machines, but going forward Windows 7 and greater will be required. So what might the best approach be with the broad install base? Just reading WIA looked like the way to go but looks like some changes were made so it works a little different now (I don't know for sure). I understand that some people have done combos.
Might need to crop photo, but that is really about it.
For school visitor monitoring.
I think the best thing is to use the WIA. I know a third party toolkit that could help you doing your requirements which is leadtools. You can check this Tutorial
I would always try to pick up something already on the web and tweak it to my own needs... some open source project or an example where the mainly portion of my app is already made.
on Codeplex you can find a nice library to work with webcams and it's simply called
WebCam Library for WinForm and WPF with C# and VB.NET
Give that a try, maybe you can even help the project, by contributing your own findings, and everyone is a winner... isn't Open Source a great idea?!
How can I use WIA and Twain in C#? The TWIAIN/C# example found at http://www.codeproject.com/KB/dotnet/twaindotnet.aspx Throws an exception at line 59 on TwainLib.cs "an attempt was made to load a program with an incorrect format." on Vista 64.
I would use WIA but it does not have support for all of the devices I want to use.
Is there a simple way to enable TWAIN support in WIA in C#? I know it can be done but I cannot find any documentation on the subject. I am not looking for a commercial product. I can figure out how to use WIA just fine - but its the fact that I cant enable TWIAN support that is annoying.
Examples in C++/CLI or VB.net are also welcome.
Thanks.
EDIT
Thanks, cristianlibardo. You helped me out a lot and I might just continue to use TWIAN for now. But I am still wanting to use WIA; so I will not accept your answer yet. Here is some more info for people just seeing this post. All are in response to this answer:
Yup, that did it for the TWIAN support; thanks! I still want to use WIA though; but now I have something to work with. However, when I select my USB camera as the source and hit acquire, the app hangs. My camera works on other, commercial, TWIAN applications.
By commenting out the lines 100 though 104 (code that checks to see if "DScap( appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, cap );" returns TwRC.Success my Camera now works. I have no idea what this code does; as documentation is next-to-nothing on this subject.
OK; its a const called "CAP_XFERCOUNT" that has something to do with scanning multiple images per session. Makes seance that a camera would not support it.
Probably a long shot but have your tried building with x86 as platform target or changing thread apartment state?