How to load Flash Player.plugin?

  • Hi, All,

    I'm pretty new in Cocoa, and my first interest is to develop a small
    (I hope!) app, which could communicate with the existing Flash Player
    plugin.
    I'd like to implement such functions as load SWF file, call some existing
    (and well-documented by Adobe) commands like movie Play/Pause, get some
    information back to my app (like current frame number), etc.

    As far as I understand I need to create an application, loading this plugin
    and connecting it with some NSView subclass within my app window. I've got
    some books about plugins, and already have got some basic understanding
    about plugins technology in Mac OS X. But I have some general questions,
    which prevent me from going ahead. I hope there is anybody out there, who
    already did the same job, so my questions could be answered with ease.

    1. Is Flash Player plugin a CFPlugin or NSPlugin? How to detect it?

    2. If it is CFPlugin, then where could I get its classes and factories
    UUIDs?

    3. Can CFPlugin be connected somehow with NSView subclass?
    How to do it? If it can't then is it possible to create a Cocoa app,
    working with Flash Player.plugin?

    4. For the NSPlugin I also don't see a good and clear example of how to
    connect the plugin with NSView. All samples in books deal with simple
    non-visual plugins. Or have I missed anything?

    Appreciate it, if anybody can help. I'd promise to publish my result with
    full source code (because I can't find such code sample upto now), but I
    definitely need some basic support in theory understanding.

    Thanks in advance!

    -Alex
  • This has been covered to death on Carbon-Dev if you wish to pursue it.
    I believe your best course of action would be to emulate the
    techniques used in WebKit or Firefox; these are open source apps so
    you can look through the code freely. This has been tried by a few
    people with mostly positive results, but to the best of my knowledge
    there is no simple sample code which demonstrates the technique,
    unfortunately.
    An easier approach is to embed a WebView into your app and then just
    display the Flash via a simple local web page. This works pretty well
    but can sometimes show minor imperfections.

    On Sep 28, 2007, at 6:12 AM, Alexander Bokovikov wrote:

    > Hi, All,
    >
    > I'm pretty new in Cocoa, and my first interest is to develop a small
    > (I hope!) app, which could communicate with the existing Flash
    > Player plugin.
    > I'd like to implement such functions as load SWF file, call some
    > existing
    > (and well-documented by Adobe) commands like movie Play/Pause, get
    > some
    > information back to my app (like current frame number), etc.
    >
    > As far as I understand I need to create an application, loading
    > this plugin
    > and connecting it with some NSView subclass within my app window.
    > I've got
    > some books about plugins, and already have got some basic
    > understanding
    > about plugins technology in Mac OS X. But I have some general
    > questions,
    > which prevent me from going ahead. I hope there is anybody out
    > there, who
    > already did the same job, so my questions could be answered with ease.
    >
    > 1. Is Flash Player plugin a CFPlugin or NSPlugin? How to detect it?
    >
    > 2. If it is CFPlugin, then where could I get its classes and factories
    > UUIDs?
    >
    > 3. Can CFPlugin be connected somehow with NSView subclass?
    > How to do it? If it can't then is it possible to create a Cocoa app,
    > working with Flash Player.plugin?
    >
    > 4. For the NSPlugin I also don't see a good and clear example of
    > how to
    > connect the plugin with NSView. All samples in books deal with simple
    > non-visual plugins. Or have I missed anything?
    >
    > Appreciate it, if anybody can help. I'd promise to publish my
    > result with
    > full source code (because I can't find such code sample upto now),
    > but I
    > definitely need some basic support in theory understanding.
    >
    > Thanks in advance!
    >
    > -Alex
  • > This has been covered to death on Carbon-Dev if you
    > wish to pursue it.
    > I believe your best course of action would be to
    > emulate the
    > techniques used in WebKit or Firefox; these are open
    > source apps so
    > you can look through the code freely.

    Another good approach is to install the components
    from Perian (http://perian.org/) and just use QT to
    access the flash content. This might be a lot simpler.
    Certainly, it was for me as an end-user.

    B

          ____________________________________________________________________________________
    Check out the hottest 2008 models today at Yahoo! Autos.
    http://autos.yahoo.com/new_cars.html
  • On 29 Sep 07, at 21:25, Brad Peterson wrote:
    >> This has been covered to death on Carbon-Dev if you
    >> wish to pursue it.
    >> I believe your best course of action would be to
    >> emulate the
    >> techniques used in WebKit or Firefox; these are open
    >> source apps so
    >> you can look through the code freely.
    >
    > Another good approach is to install the components
    > from Perian (http://perian.org/) and just use QT to
    > access the flash content. This might be a lot simpler.
    > Certainly, it was for me as an end-user.

    Perian plays Flash Video (flv), not Flash animations (swf).
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today