Embedding Flash Player in a C++ or Java application?

前端 未结 8 1965
甜味超标
甜味超标 2020-12-06 06:47

I would like to embed Flash Player directly inside a C++ or Java application.

I found an article that describes how to do this for C#: http://www.adobe.com/devnet/fl

相关标签:
8条回答
  • 2020-12-06 07:24

    One simple way to create a Flash player in your window: AtlAxCreateControlEx.

    To receive and send events, you will need a sink: AtlAdvise. You will need to define the functions receiving events on the ActionScript (i.e. Flash) side too.

    0 讨论(0)
  • 2020-12-06 07:28

    What you should use is Netscape Plugin API. It's native and it's what all the good browsers use to load flash player plugin. While the actual flash player is not open source, this API is.

    If you're not gonna ship a copy of flashplayer with your app:

    Your app should check at runtime for flash player and should alert the user if it doesn't find it (usually by giving a link to Adobe to download it). Flashplayer plugin is usually installed at %AppData%\Mozilla\plugins on Windows.

    0 讨论(0)
  • 2020-12-06 07:31

    I personally haven't tried this but say in case of SWT/Java you could embed SWT browser window in you SWT/Java application and in the browser view you could put content with flash content, then communicate say with Merapi bridge with flash movie and java.

    0 讨论(0)
  • 2020-12-06 07:32

    I don't know how to embed flash in C++, but Christopher Deckers (of SWTSwing fame) has developed an interesting hack which allows it to be embedded in Java. You can find more information in the Javalobby announcement thread.

    Here is an updated link: https://github.com/Chrriis/DJ-Native-Swing

    0 讨论(0)
  • 2020-12-06 07:32

    If it has to be open source I'd consider Gnash, an open source flash implementation.
    It works on all major platforms, supports most multimedia codecs and is supposed to be embeddable in applications through nsapi.

    0 讨论(0)
  • 2020-12-06 07:36

    Take a look at FlashDX. It is open-source and free.

    0 讨论(0)
提交回复
热议问题