"jfb_mdialog" wrote:
However, I'm also trying to put something on top of the scrubber (using a z-index higher than that of the scrubber_layer), and while I can put that up, I can't make it go away. In addition, I can't get the correct solution to work -- painting the scrubber (a ~50ms operation) once into a background (negative z-index) layer and then swapping it with a visible layer as requested. If I create a negative z-index layer (calling setLayer(negative_index, some_content)), I can't summon that layer forward.
"jfb_mdialog" wrote:
I'm seeing inconsistent or missing documentation on how to manage layers; for instance, nowhere is it defined which if any layer the video is playing on;
"jfb_mdialog" wrote:
nowhere is it made explicit that layer 0 is privileged;
"jfb_mdialog" wrote:
and nowhere is it explained what layer swapping entails (e.g., is it commutative?).
"jfb_mdialog" wrote:
How do I make a layer transparent?
"jfb_mdialog" wrote:
Is the color specification RGBA or ARGB?
"jfb_mdialog" wrote:
What about gaps (setLayer(3, content), setLayer(5, othercontent) yields ... ?)?
"TheEndless" wrote:"jfb_mdialog" wrote:
However, I'm also trying to put something on top of the scrubber (using a z-index higher than that of the scrubber_layer), and while I can put that up, I can't make it go away. In addition, I can't get the correct solution to work -- painting the scrubber (a ~50ms operation) once into a background (negative z-index) layer and then swapping it with a visible layer as requested. If I create a negative z-index layer (calling setLayer(negative_index, some_content)), I can't summon that layer forward.
I've never worked with negative z-index, but why not just do a SetLayer with the content, instead of trying to swap existing layers?
"jfb_mdialog" wrote:
What about gaps (setLayer(3, content), setLayer(5, othercontent) yields ... ?)?
No different than "setLayer(3, content), setLayer(4, othercontent)", except that with gaps, you have the ability to insert layers in between. I'll typically number my layers in 10s or 100s, just so I don't have to re-number anything if I need to add a new layer in between at some point.
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!