Anything on top of Video Component & IOS auto play without gesture using <video mute>?

Anything on top of Video Component & IOS auto play without gesture using <video mute>?
0

#1

Hi,

Is it possible to have anything on top of the video component? For example a “skip video”-button on top of the video playback?

I have not found a way to get this to work.

Thanks for any help!


#2

Anyone has done this or know how it can be done?


#3

Hello,

I was also looking for a way to display a node above a video for one of my project, but the only thing I found was on this topic : Alternative to CCVideoPlayer and CCSGVideoPlayer

So, it appears it’s not possible for now.

Hope it was usefull.


#4

Thank you for your response @yoif5!

I checked how the element is placed into the HTML and it looks like this:


(this explains why you cannot see anything of the canvas, since it is an element on top of the canvas)

I also have problems with playback on some (super random that it’s not all) IOS devices because of:
https://webkit.org/blog/7734/auto-play-policy-changes-for-macos/

It says that <video muted> elements will also be allowed to autoplay without a user gesture.

But even if I have these settings:
image
Muted and volume 0, it doesnt apply the muted attribute into the video <video muted>. This can be seen on the screenshot of the element above.

@jare @slackmoehrle is this something you are aware of? Do you know a way to Hack the video element and force a muted attirbute into it so that I can ensure that the video is always auto-playing, also in IOS?


#5

You might need to customize the engine to achieve this. Search “createElement(‘video’)” in video-player-impl.js please.


closed #6

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.