Most active commenters

    ←back to thread

    518 points cantdutchthis | 11 comments | | HN request time: 0.858s | source | bottom
    1. paulirish ◴[] No.44501428[source]
    If the target is a GitHub readme, then you can embed a video directly. eg https://github.com/paulirish/git-recent#readme

    That said, OP's SVG trick may be a smarter choice if the content is a terminal capture.

    replies(5): >>44501659 #>>44501901 #>>44503973 #>>44504356 #>>44504696 #
    2. c-hendricks ◴[] No.44501659[source]
    If you're going this route of adding a straight up video (which isn't bad!) it helps to edit the readme directly on GitHub. That way they're uploaded to githubusercontent (or whatever the domain is) and not taking up space in your repository.
    replies(1): >>44502089 #
    3. pamelafox ◴[] No.44501901[source]
    The nice thing about videos is the play/pause/slider UI. Some platforms do add play/pause explicitly to GIFs, using some JS, but as far as I know (and you would know more), that's not built into browsers yet. That's been one of the reasons I often end up using videos instead.

    When I've personally animated SVGs for use in RevealJS presentations, I tend to use CSS animations that I could control with JS if I wanted.

    replies(2): >>44502056 #>>44502132 #
    4. kzrdude ◴[] No.44502056[source]
    If this gets widespread use, browsers will catch up and in 5-10 years we will have pause buttons! ;)
    replies(1): >>44502498 #
    5. hbn ◴[] No.44502089[source]
    Were people doing that other option?

    The idea of committing a video to your repository for a PR seems silly. Every PR adds a new video to the codebase? Do you make a PR to prune them every once in a while?

    replies(1): >>44503084 #
    6. not2b ◴[] No.44502132[source]
    An animated GIF is essentially a video with a large number of restrictions and poor compression compared to an actual video. Often sites convert animated GIFs to videos because the result is smaller and works better.
    7. justsomehnguy ◴[] No.44502498{3}[source]
    Meanwhile we are still have a stupid overlay controls because 20 years ago it was an iframe for an ActiveX control.
    8. aziaziazi ◴[] No.44503084{3}[source]
    > Every PR adds a new video to the codebase

    Git commits only differences with the precedent commit, not the entire repository. Therefore the video is only committed once as long as that video doesn’t change.

    9. pcthrowaway ◴[] No.44503973[source]
    The SVG trick is less usable for screen captures IMO, since you lose controls.

    I think it's best for embedding a motion demo of a feature your software provides, no more than 5 seconds. Even then, a video option may be useful to some people.

    10. socalgal2 ◴[] No.44504356[source]
    SVG can be color responsive (change color based on the user's dark/light prefs). It can also be size responsive (change based on max width or aspect). Video can't

    https://jsbin.com/nohamuguze/edit?html,css,output

    edit: sigh.... Works in Firefox and Chrome. Has issues in Safari - I'm sure I could futs with it more and get it to work everywhere but still, sadness

    11. felizuno ◴[] No.44504696[source]
    wow Paul I haven't seen your name in years but loved what you used to do with Echo Nest and the Rdio API <3