[Laszlo-dev] LPP-8107 fullscreen, some questions
Raju Bitter
rajubitter at me.com
Fri Jun 12 05:55:47 PDT 2009
Thanks, Max. It's working for SW9 now, I just needed a place to put
the display state in a way that's easily accessible. Right now I chose
to add a @displaystate attribute to canvas with the values of
"fullScreen" and "normal" (take out of
canvas.sprite.stage.displayState)? What do you think?
I don't know what the impact would be of making every SWF run with
allowFullScreen="true", but I've there have been some problems with
fullscreen mode:
* iFrames are hidden when you go in fullscreen: http://drumbeatinsight.com/examples/htmlcomponent/fullscreen/HTMLFullScreenOpaque.html
* Safari had a bug for some time with receiving mouse clicks and
keyboard input, don't know what the status of that is.
I'll send out a first version of the fix for SWF9 only for review to
you today. I stilll haven't figured out how the Flash properties are
passed into the embed script, though.
- Raju
On Jun 11, 2009, at 9:07 PM, Max Carlson wrote:
>
>
> Raju Bitter wrote:
>> Max, Henry,
>> I'm back at working on http://jira.openlaszlo.org/jira/browse/
>> LPP-8107
>> I have a few qestions:
>> 1) What kind of code do you put into LzScreenKernel, compared to
>> LaszloCanvas? Would be better to have the code to go into
>> fullscreen mode in LzScreenKernel? Max already suggested that, so
>> that will be my approach for now.
>
> LzScreenKernel seems like the right place to put the actual
> implementation. I'd also suggest adding a capability to LzSprite so
> folks can check to see if a given runtime supports fullscreen. That
> way you can avoid writing stub methods for DHTML, and optionally add
> a warning. See LaszloView.lzs#$lzc$set_rotation() for an example of
> this.
>
>> 2) Where's the connection between canvas attributes and the
>> templates used for HTML generation. I'll look into that, but some
>> input would be valuable.
>> I'm documenting my approach here: http://wiki.openlaszlo.org/SWF_Runtime_Fullscreen_Support#Ongoing_work
>
> You need to set the allowFullScreen object/embed attribute. The
> place to do this is lps/includes/source/embednew.js#lz.embed.swf().
> It looks like you already have a line on how to pass the canvas
> attribute into the generated html, but you may be able to get away
> with defaulting allowFullScreen to true and not have to bother with
> this...
>
> --
> Regards,
> Max Carlson
> OpenLaszlo.org
More information about the Laszlo-dev
mailing list