08-22-2013 03:05 PM
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-D
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?
08-23-2013 03:17 PM
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.