Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the Flash view from WebKit



Title: reea signature
Hi,
Finaly I loaded the plugin in my app but the application crashes when I call NPP_SetWindow. In the webkit source code there is a method that whould be called before calling a method with NPP_. I tryed this to but it is not working(the same crash). I'm loading the plugin in a carbon window loaded from the nib. Whould I make some custom setting for this window. Here is the code, hope some one can find the problem :

    NPWindow npwin;
        npwin.x         = 50;
        npwin.y         = 50;
        npwin.width     = 300;
        npwin.height    = 300;
        npwin.type      = NPWindowTypeWindow;
        npwin.window    = GetWindowPort(window);
        /*npwin.clipRect.top = 0;
        npwin.clipRect.left = 0;
        npwin.clipRect.right = 300;
        npwin.clipRect.bottom = 300;*/

    assert(NPP_SetWindow);
    npErr = NPP_SetWindow( npp, &npwin);  
    assert(1);
    fprintf(stdout,"NPP_SetWindow : %d\n",npErr);

Thanks,
    Olariu Adrian Mihai


Olariu Adrian Mihai wrote:
Hi,
   I have to build am carbon application and the entire UI needs to be done in flash. First I embedded the Flash movie in an HTML document and load this document in a WebView contained in the carbon window. But I have problems getting and handling some mouse events in the flash movie. On the carbon-dev someone suggested me to look at Mozila/WebKit code and see how they load the Flash plugin in the application. I guess this is the best way to do what i have tot do. Can someone please assist me doing this.

Thank you,
Olariu Adrian Mihai.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden



--
Olariu Adrian Mihai Piata Republicii nr.41
tel/fax: 0265-264856
0365-405137
software developer 540110, Tg. Mures
email@hidden Romania email@hiddenwww.reea.net
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

References: 
 >Getting the Flash view from WebKit (From: Olariu Adrian Mihai <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.