Skip to main content
Participant
May 16, 2024
Answered

video component is shown on the top layer

  • May 16, 2024
  • 1 reply
  • 268 views

Hello)
I had this situation.
added a video component to the scene.
On the layer above this component I placed a control button.
When publishing, the video component is shown on the top layer, thereby hiding my control button.
Tell me, is it possible to control the depth of layers for video components?

    This topic has been closed for replies.
    Correct answer kglad

    yes

     

    1 - Go to the document properties and set the background color to full transparency;

     

    2 - Change the canvas zIndex property to a value bigger than 0.

    canvas.style.zIndex = "1";

     

    3 - Optionally, disable click events for the canvas if you need to control the video.

    canvas.style.pointerEvents = "none";

     

    You can put these codes in the first frame of the main timeline or somewhere else.

    I hope this helps.

    1 reply

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    May 16, 2024

    yes

     

    1 - Go to the document properties and set the background color to full transparency;

     

    2 - Change the canvas zIndex property to a value bigger than 0.

    canvas.style.zIndex = "1";

     

    3 - Optionally, disable click events for the canvas if you need to control the video.

    canvas.style.pointerEvents = "none";

     

    You can put these codes in the first frame of the main timeline or somewhere else.

    I hope this helps.

    Participant
    May 16, 2024

    thanks, it worked. Is it possible to control, for example, the component scale of a video directly using code in the first frame of the main timeline?