Replies: 3 comments 1 reply
-
Amazing, great work! 👏 |
Beta Was this translation helpful? Give feedback.
0 replies
-
dope work, homie! |
Beta Was this translation helpful? Give feedback.
1 reply
-
Great work! Wish every repo had such detailed release information 👏 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋
The last release was a massive change in direction and mostly involved getting the code base up to scratch with our new tooling. In the last week we've gone deep in every inch of the library to find anywhere that may cause DX pain, and we've worked hard to bring React 18 and Next.js 13 support.
This is jam packed - enjoy!
Media State/Events (BREAKING CHANGE)
Generic media provider API has been lifted up to the
<vds-media>
element or<Media>
component in React.OLD
NEW
WHY?
play
.Providers such as
<vds-hls-video>
now only contain provider-specific API. This includes importinghls.js
, configuring thehls.js
instance, and listening to HLS events (e.g.,level-loaded
).Media View (BREAKING CHANGE)
A new attr/prop called
view
(previously calledviewType
) is now required on the<vds-media>
element to render correctly. This will be an import property when we get to skins because it'll essentially hint what type of UI to display (audio
,audio-live
,video
,video-live
,video-live:dvr
).React 18 + Next.js 13 (BREAKING CHANGE)
The React integrations were super early in the last release. This time we tested it with React 18 and Next.js 13 to get everything working smoothly.
undefined
. This is now fixed.<MediaProvider>
component.useMediaProviderElement
to retrieve the current provider. Handy when working withhls.js
.HLS Provider (BREAKING CHANGE)
The
<vds-hls-video>
element or<HLSVideo>
component had some API cleaning up including:hlsLibrary
prop is nowlibrary
.hlsConfig
prop is nowconfig
.We removed the
hls-
prefix from all events. Some examples:hls-instance
is nowinstance
oronInstance
in React.hls-lib-load-start
is nowlib-load-start
oronLibLoadStart
in React.hls-media-attaching
is nowmedia-attaching
oronMediaAttaching
in React.hls-level-loaded
is nowlevel-loaded
oronLevelLoaded
in React.There was also a bug with
hls.js
events not being attached correctly if called before the component had been attached. That's fixed now.Media Request Event Types (BREAKING CHANGE)
The
Media
prefix was added to all media request event types:Little Things (BREAKING CHANGE)
view-type
attr orviewType
media state is simplyview
media-type
attr ormediaType
media state is simplymedia
ios-fullscreen
attribute is nowios-controls
startLoadingMedia
method is now on<vds-media>
and is calledstartLoading
Provider Type Checks (NEW)
There are new provider type check utilities that compliment the new
useMediaProviderElement
React hook (refer to components docs).Fixes
ios-controls
is correctly applied now to help avoid double controls.define/*
exports were not correctly set inpackage.json
so they would go no where.<audio>
or<video>
element throwing (Error: [vds]: expected <audio> or <video> in default slot. Received: <DIV>. #674 and Cannot Find Module /react-dom/server #717)vds-poster
) was not provided.<audio>
or<video>
element on connect.Next Steps
<vds-toggle-button>
and<vds-slider>
base components. Few people made me aware that they liked having these foundational building blocks.After all that we're going to continue the 1.0 project board and reach feature parity, and after that it's skins :) We're getting there!!
Until next time friends 🍎
Beta Was this translation helpful? Give feedback.
All reactions