HNHacker News
TopNewBestAskShowJobs

redhippo

3 karma · joined July 6, 2024

submissionscomments
redhippo··on Show HN: Winamp and other media players, rebuilt for the web with Web Components
About the wizard, it would help if you just had a "Subtitles" checkbox somewhere which then adds a blank <track> line to the script.

As for the synthax question, my point is that your script looks like this

  <video
    slot="media"
    src="https://stream.mux.com/fXNzVtmtWuyz00xnSrJg4OJH6PyNo6D02UzmgeKGkP5YQ/low.mp4"
    playsinline
    crossorigin
  ></video>
And media chorme looks like this

<video slot="media" src="./video.mp4" crossOrigin playsInline>

<track label="English" kind="captions" srcLang="en" src="./captions.vtt"></track>

<track label="thumbnails" default kind="metadata" src="./thumbnails.vtt"></track>

</video>

And I just don't know how to interpolate the two

(Edit, checking further, I did manage to mix the two, and I can play subtitles over your demo video, but not over mine so I guess a foolproof sample in the wizard is probably needed :D )

redhippo··on Show HN: Winamp and other media players, rebuilt for the web with Web Components
I love it. Just one kindness: could you add subtitle tracks to the wizard? They are quite hard to add for now, since there is no documentation and media-chrome seems to use a different synthax.
redhippo··on Let's stop counting centuries
I thought the exact same thing... when I was eight. Then I just learned the mental gymnastics of hearing, say, "20th century" and associating it with "1900" at got along with it. Really, it's a bit dated, but if people can function with miles and furlongs, they can handle centuries...