elements

Custom elements for working with media in the browser that Just Work™

MIT License

Downloads
1.9M
Stars
248
Committers
23

Bot releases are hidden (Show)

elements - [email protected]

Published by dylanjha almost 3 years ago

New feature!

  • pass in start-time attribute to make playback start at a certain timestamp. For example <mux-audio start-time="4" will start playback at the 4 second mark.
  • improved TypeScript definitions

Behind the scenes:

  • We're now using esbuild directly, no longer relying on snowpack to do esbuild
  • Now using @mux-elements/playback-core for main playback logic
  • Mux Data fields will now set player_software_name and player_software_version metadata on views.
elements - [email protected]

Published by dylanjha almost 3 years ago

New feature!

  • pass in start-time attribute to make playback start at a certain timestamp. For example <mux-video start-time="4" will start playback at the 4 second mark.
  • improved TypeScript definitions

Behind the scenes:

  • We're now using esbuild directly, no longer relying on snowpack to do esbuild
  • Now using @mux-elements/playback-core for main playback logic
  • Mux Data fields will now set player_software_name and player_software_version metadata on views.
elements - [email protected]

Published by dylanjha almost 3 years ago

A new Mux Element! <MuxAudio /> react component is the counterpart to <MuxVideo />

elements - [email protected]

Published by dylanjha almost 3 years ago

playback-core contains utilities and logic shared by the various playback elements:

  • mux-video
  • mux-video-react
  • mux-audio
  • mux-audio-react

See the playback-core README for more details

elements - [email protected]

Published by dylanjha about 3 years ago

  • Add enum attribute stream-type ("vod", "live", "ll-live"). Under the hood <mux-video> will make optimizations based on the stream type.
elements - [email protected]

Published by dylanjha about 3 years ago

  • Specify type: "module" in package.json
  • This fixes the following error with SSR in Next.js: SyntaxError: Unexpected token 'export'
elements - [email protected]

Published by dylanjha about 3 years ago

  • Specify type: "module" in package.json
  • This fixes the following error with SSR in Next.js: SyntaxError: Unexpected token 'export'
elements - [email protected]

Published by dylanjha about 3 years ago

Hello world <mux-video>

elements - [email protected]

Published by dylanjha about 3 years ago

Hello world <mux-audio>