Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 2
Registered: ‎08-22-2013
My Device: Q10
My Carrier: Rogers

Clicks getting triggered in Flash but not HTML

Developing an app around a Flash media player (Yes, it has to be flash - the content is encrypted by Adobe DRM).

 

Problem 1 is that the flash player API does not work as flash cannot call local JS in webworks (as seen here: http://supportforums.blackberry.com/t5/Adobe-AIR-Development/ExternalInterface-call-does-not-work-on...)

 

The end goal is to have an HTML overlay appear over top of the flash player when the user touches on the video.  I can add an HTML element over top of the player and capture that click event easily.  The issue is that the player (3rd party that I don't have access to) needs to also show the controls when the user touches the video.  

 

I have this working in chrome: http://jsfiddle.net/bGcAM/1/

 

So the success case here is that when I click on the video, the controls work, but I'm also able to pick up events from the container div.

 

When I run on Ripple and the device, only the player controls work (no JS events getting fired onmousedown).  I tried eliminating the flash player and ran on the device/Ripple and yes, they do get detected.

 

Adding the flash player back in and only the player clicks work.  Is there something with Flash running on the device that it runs completely sandboxed and just sort of shows up on the screen but isn't really part of the app at all?  Anyone have and ideas to get clicks/touches picked up by both the webworks application and the flash player?

Highlighted
Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Clicks getting triggered in Flash but not HTML

I'm not 100% certain on this but as far as I know this is expected functionality. The Flash player in the BlackBerry 10 browser is Flash Mobile not the full version you have on the desktop. So this may be the reason why it's sandboxed.

 

It is possible to communicate through JavaScript to AIR through QNXStageWebView. I believe AIR would be your only option in this scenario. 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/