YouTube videos are too large on mobile devices
-
I know I posted this in another thread somewhere, But I also feel this should be built in by default. If you look at any current CMS systems, yes there not forums, but they all support popular embeds. The idea is to make it as easy as possible for users. The less plugins we have, the more stable the core would be and I for one would like popular embeds as part of the core.
Just my 2 cents.
Forums have been on a slow decline due to group video chats and slack type services these types of features to me are a must in order to even be at the table. -
@frissdiegurke said:
@prog said:
perhaps posting youtube videos should be a core feature, which can be disabled if not wanted?
Definitely not.
NodeBB is meant to be highly plugin-able. Even markdown-usage is a plugin.
At most it would be added to shipment-dependencies therefor it's installed on fresh installations by default.
I don't consider it as important, especially since there are so many sources to embed things from it wouldn't be correct to favor youtube. But the latter is just my opinion.Thats the reason why it is not working.
If the plugin creator does not have time to maintain the plugin it might break your website. YouTube and any other popular Video hosting website should be a build in feature. Content sharing is a must have for every cms..
Edit:
Content sharing is a must have for every blog, forum, cms or web community
-
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.