Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to bring video.js playbutton to front of canvas that is in front of video element?
    primarykey
    data
    text
    <p>I am using <a href="http://www.videojs.com" rel="nofollow noreferrer">video.js</a> to make a frontpage and i am letting these <a href="http://threejs.org/examples/canvas_geometry_birds.html" rel="nofollow noreferrer">birds</a> fly around freely in front of the video player, so i set the div that contains the video element to a very negative z-index, but however, then i can't press play because the play button is set behind the birds (canvas) too because it's a child of the video. <img src="https://i.stack.imgur.com/EXJno.png" alt="enter image description here"> How can i get the play button in front of the birds at the beginning so that i can press play (i will move the container back in front of them onclick)?</p> <p>code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script&gt; function bringPlayButtonInFrontOfBirds(){ document.getElementsByClassName("vjs-big-play-button")[0].style.zIndex = "200000"; document.getElementsByClassName("vjs-control-bar")[0].style.zIndex = "200000"; } &lt;/script&gt; &lt;/head&gt; &lt;body onload ="bringPlayButtonInFrontOfBirds()"&gt; &lt;script&gt;//birdcode &lt;/script&gt; &lt;div id="container" style ="position:absolute; left:28%;top:25%; z-index:-1000;"&gt; &lt;video id="example_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="264" style ="z-index:1000;" data-setup='{"techOrder":["youtube","html5"],"ytcontrols":false}'&gt; &lt;source src="http://www.youtube.com/watch?v=g1As9ObURDA" type="video/youtube" /&gt; &lt;/video&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload