[docs] document component for HTML5 videos
See original GitHub issueSimilar to gatsby-image, I think a separate package (gatsby-video) should be made for HTML5 videos, as they have several quirks to get over with, including:
- Using an aspect ratio box as a container for
video
elements to limit the amount of browser re-rendering tasks - Setting a
poster
(thumbnail) for videos while letting them be preloaded- Using the
poster
attribute on its own is not enough, because if a video gets preloaded, then theposter
gets substituted by a still clip from the video - Thumbnails should be available in multiple (responsive) sizes, which is not yet possible with the
poster
attribute
- Using the
I would like to propose some ideas for components to be used in gatsby-video:
Using the Video
components should be as easy as using gatsby-image.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:22
- Comments:20 (15 by maintainers)
Top Results From Across the Web
The Video Embed element - HTML - MDN Web Docs - Mozilla
The HTML element embeds a media player which supports video playback into the document. You can use for audio content as well, ......
Read more >Documentation: <amp-video> - amp.dev
A replacement for the HTML5 video tag; only to be used for direct HTML5 video file embeds. The amp-video component loads the video...
Read more >Convert HTML documents to video or image ads
HTML documents without pages, AMPHTML ads, video ads, image ads and animated GIFs cannot be converted to other types. Convert a document to...
Read more >Class: Html5 - Video.js Documentation
Boolean indicating whether the HTML5 tech currently supports the media element moving in the DOM. iOS breaks if you move the media element,...
Read more >Video.js - Make your player yours | Video.js
The world's most popular open source HTML5 player framework. ... Plays “traditional” file formats such as MP4 and WebM, but also supports adaptive...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
~My apologies everyone, I haven’t had time to clean it up or actually publish it, you know how life can be. I’ve uploaded all the code however, it’s functional - this holidays I’ll have time to do so.~
~You’ll just need to install it manually instead of via npm.~
You can install gatsby-remark-videos via npm now.
https://github.com/Mike-Dax/gatsby-plugin-ffmpeg https://github.com/Mike-Dax/gatsby-remark-videos
@pablasso I did, let me clean it up and I’ll publish it.