videojs-youtube icon indicating copy to clipboard operation
videojs-youtube copied to clipboard

No play button on mobile

Open joerex opened this issue 7 years ago • 5 comments

I'm having an issue on mobile devices where vjs-big-play-button is set to display none by injectCss no matter whether or not I choose to use the youtube player controls.

joerex avatar May 11 '17 20:05 joerex

I also see this. You can see this issue by opening the a project with this tech in use in chrome, and then emulate a phone. Big play button is missing.

simonerlandsen avatar May 29 '17 07:05 simonerlandsen

+1 on this one

chrisbell08 avatar May 29 '17 21:05 chrisbell08

Quick Fix i'm using ATM: .vjs-youtube-mobile .vjs-big-play-button { display: flex !important; } .vjs-youtube-mobile.vjs-has-started .vjs-big-play-button { display: none !important; }

chrisbell08 avatar May 29 '17 22:05 chrisbell08

the youtube play icon is still there below the player button as @chrisbell08 solution suggest... this is because the content is loaded inside an Iframe and the target element inside it is

 button.ytp-large-play-button.ytp-button

also, the youtube spinner (.ytp-spinner) is disturbing on the background... I don't think adding a className will work here...

any suggestions ?

592da avatar Aug 02 '17 06:08 592da

you can override that (thanks chrisbell08):

.vjs-youtube-mobile .vjs-big-play-button { background:#000; display: flex !important; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); height: 1.5em; width: 1.5em; margin-left: -0.8em; }

.vjs-youtube-mobile.vjs-has-started .vjs-big-play-button { display: none !important; }

Nestrot avatar Jan 06 '18 10:01 Nestrot