Mac - Flash file not loaded in independent flash player

Posted by Mugdha on Stack Overflow See other posts from Stack Overflow or by Mugdha
Published on 2008-11-05T16:03:06Z Indexed on 2010/03/08 3:02 UTC
Read the original article Hit count: 696

Filed under:
|
|
|
|

Hi,

I am working on an independent application to play flash files on Mac. I have already done the same for Linux, and it works flawlessly but on mac for some reason flash is not drawing to my window. It is not throwing any kind of error too. I am using Flash player 10, that would mean that I am using the Core Graphics drawing model. I am able to send mouse events to flash and wrote a sample plugin to check if there was a problem in the context that I was sending, but my sample plugin draws properly to the window.

I am getting a call for NPN_InvalidateRect twice and as a response I send an update Event back to flash. I drew a dummy rectangle to check that my context is correct. I have flipped the context to make the origin as top left corner.

On doing right click on the debug version of the flash player it shows the following message: "Movie not loaded..."

Can anyone give me any idea why is the content not being drawn? I would really appreciate the help, as I have been struggling with it for more than a month now.

Here is a small log of the interaction that I have with flash:

NPN_UserAgent Called

NPN_GetValue Called with variable NPNVWindowNPObject; return NULL

NPN_GetValue Called with variable NPNVWindowNPObject; return NULL

NPN_GetValue Called with variable NPNVSupportsWindowless; return true

NPN_SetValue Called for Variable - NPPVpluginTransparentBool; return true

NPN_GetValue Called with variable NPNVsupportsCoreGraphicsBool; return true

NPN_SetValue Called for Variable - NPNVpluginDrawingModel

NPP_SetWindow (CoreGraphics): 0, window=0xebaa90, context=0xe4c930, window.x:0 window.y:22 window.width:480 window.height:270

NPP_HandleEvent(activateEvent) accepted:0 isActive: 1

NPP_HandleEvent(updateEvt) accepted: 1

NPN_UserAgent Called

NPN_GetURLNotify Called with URL - javascript:top.location+"flashplugin_unique"

NPN_GetValue Called with variable NPNVWindowNPObject; return NULL

NPP_NewStream URL=/Users/mjain/Desktop/clock.swf MIME=application/x-shockwave-flash error=0

NPP_WriteReady responseURL=/Users/mjain/Desktop/clock.swf bytes=268435455

NPN_InvalidateRect Called

NPP_Write responseURL=/Users/mjain/Desktop/clock.swf bytes=9925 total-delivered=9925/9925

NPP_WriteReady responseURL=/Users/mjain/Desktop/clock.swf bytes=268435455

NPP_DestroyStream responseURL=/Users/mjain/Desktop/clock.swf error=0

NPP_HandleEvent(updateEvt) accepted: 1

NPN_InvalidateRect Called

NPP_HandleEvent(updateEvt) accepted: 1

NPP_NewStream URL=javascript:top.location+"flashplugin_unique" MIME=text/plain error=0

NPP_WriteReady responseURL=javascript:top.location+"flashplugin_unique" bytes=16000

NPN_UserAgent Called

NPP_Write responseURL=javascript:top.location+"flashplugin_unique" bytes=52 total-delivered=52/52

NPP_WriteReady responseURL=javascript:top.location+"flashplugin_unique" bytes=16000

NPP_DestroyStream responseURL=javascript:top.location+"flashplugin_unique" error=0

NPP_URLNotify responseURL=javascript:top.location+"flashplugin_unique" reason=0

Thanks Mugdha.

© Stack Overflow or respective owner

Related posts about flash

Related posts about mozilla