Currently on web platforms, CCVideoPlayer is implemented by creating a dom video element over the canvas. This posses some limitation such as unable to layers UI built using nodes on top of a video. Would like to suggest an implementation of video based on this example mozilla has given:
With this, video textures can be extracted and rendered similar to how a CCSprite, CCTexture2D animation is done. We can even apply shaders to the video this way. Please consider such implementation.
Actually, all my animations are running behind the videos, but that is not enough for what I plan to do.
I need video nodes to be able to dynamically move behind or in front of other nodes, as the regular ones do.
It’s technically impossible for the canvas to draw in front of and behind the video tag at the same time.
I think that the only solution is to render video textures as explained in this topic