YouTube videos are too large on mobile devices
-
Nodebb isn't a CMS. There was a standard youtube plugin. I made my own that lazy loaded the videos to save the massive page loading times on video heavy websites. People downloaded. Once I've worked out the regex and it works reliably. What people do with it is their choice.
-
Ok, Updated to 0.4.6.
@exodo You will need to clear your cache, seems some old CSS is still loading, the updated version displays the red play button as it does on a proper youtube embed etc. So if you still see the black one, cache will be your enemy.
If the videos appear slightly smaller on Desktop, try restarting your forum. I've gone with a slightly different method of calculating width and height. It now uses vh and vw. If your browser is older than IE9, Chrome31 or Firefox 38, you'll get the small box anyway.
Please let this be the end of these issues.
-
@a_5mith said:
Ok, Updated to 0.4.6.
@exodo You will need to clear your cache, seems some old CSS is still loading, the updated version displays the red play button as it does on a proper youtube embed etc. So if you still see the black one, cache will be your enemy.
If the videos appear slightly smaller on Desktop, try restarting your forum. I've gone with a slightly different method of calculating width and height. It now uses vh and vw. If your browser is older than IE9, Chrome31 or Firefox 38, you'll get the small box anyway.
Please let this be the end of these issues.
will test it tonight , waiting for npm update lol
-
@a_5mith said:
Ok, Updated to 0.4.6.
@exodo You will need to clear your cache, seems some old CSS is still loading, the updated version displays the red play button as it does on a proper youtube embed etc. So if you still see the black one, cache will be your enemy.
If the videos appear slightly smaller on Desktop, try restarting your forum. I've gone with a slightly different method of calculating width and height. It now uses vh and vw. If your browser is older than IE9, Chrome31 or Firefox 38, you'll get the small box anyway.
Please let this be the end of these issues.
not sure if plugin has official post os i write it here
tested plugin on clean 0.7 and clean 0.8, 3 browsers and mobile, cache cleared etc
still getting broken youtube previews
mac and iOSsomething like this
console error on load
then a hundred errors of this
Blocked a frame with origin "https://www.youtube.com" from accessing a frame with origin "http://". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match. -
0.4.7, add this to your custom CSS
.content iframe { max-width: 100% !important; }
Caveat: Videos don't show the title until clicked, this is because v2 api has been nuked, I'm creating a separate branch to utilise Youtube API v3.
Will be the next major version.