Closed matticoli closed 4 years ago
This will improve page load speed, user engagement and SEO (due to page load speed)
We need to load the YouTube preview image (selectable on YouTube site) and have a large centered play button overlay shown over static preview image
If we wanted to further optimize, we could have preview image with play button generated on publish, so all images are loaded on the same place, but this would only matter once #94 is addressed
yes it could be generated when the file is linked and saved, so the preview works
Videos are currently not linked as files, we do some string processing on the url to make sure it is in the correct format and generate an embed code
it's fine if videos are not linked as files, but the YouTube API allows us to get the thumbnail from them. https://developers.google.com/youtube/v3/docs/thumbnails
Right, I meant there isn't really a "link" step for videos like there is for images and audio files
Let’s make the play button 150px on desktop and at least 100px on mobile. Ideally anywhere on the video for preview will open the video, not just the play button
looks great, I would make the play button bright blue and 2X as large (overlay button)
This will prevent iframe loading from slowing down page load times on slower internet connections