Overlay button on video player
When i open a videojs player in safari browser in ios(ipad/iphone) device , it works on native controls by default . When i pause the player i display overlay buttons (links to go for other page) on video . If i click buttons it does not fire in ios . It works well in desktop browsers . If i set nativeControlsForTouch to false it displays custom controls . Here overlay buttons and custom controls works but it will be sluggish and i am not able scroll over video and it will be not smooth as compared with native controls . Please suggest me any idea
- If i use native controls , then overlay buttons has to work
- If i use custom controls , then video player will be as smooth as compared with native controls
You might try one of these suggestions from SO. http://stackoverflow.com/questions/17687957/clicks-on-top-of-html5-video-elements-dont-work-in-safari-on-iphone
I can't say why the mobile controls would be sluggish for you, but they are still in beta. I'll make a note to test the performance of them.
@heff , Thanks for reply . Here i mentioned sluggish not for buttons and icons , it refers to not scroll over video and if i click over video it has to pause but it is not pause sometimes . Hope you get my point
Got it, that helps. Thanks.
@heff, http://stackoverflow.com/questions/17687957/clicks-on-top-of-html5-video-elements-dont-work-in-safari-on-iphone In this link they are doing display none and block for video . But in my case i am displaying big play button and two overlay link button for every pause . I can't do display none for video for every pause .