0.6.0
Moved package and repository
We're excited to announce that we've moved @daily-co/daily-react-hooks
to @daily-co/daily-react
!
Please note that @daily-co/daily-react-hooks
is now deprecated. To get the latest updates, please upgrade to @daily-co/daily-react
. To help you migrate swiftly we created a small codemod. It removes the old package, installs the new one and updates all import
statements in your codebase.
Features
- 🆕 🎥
DailyVideo
component: no more battles when assigningMediaStreamTrack
s to<video>
elements! All it takes is asessionId
andDailyVideo
will take care of the rest. Learn more aboutDailyVideo
in our docs! - 🆕 🔉
DailyAudio
component: having a hard time managing audio tracks? Sweat no more:DailyAudio
is a plug-and-play component to keep audio rolling in your Daily React app! Learn more aboutDailyAudio
in our docs! - 🆕 🎻
DailyAudioTrack
component: in cases whereDailyAudio
doesn't fit as nicely and developers need more fine-grained control on which audio tracks should play in the browser,DailyAudioTrack
allows to setup a custom audio composition. Read up aboutDailyAudioTrack
in, yup, you guessed right, our docs! - 🆕 🎤
useActiveSpeakerId
hook: use this hook, when you're only interested in the active speaker'ssession_id
.useActiveSpeakerId
is a drop-in replacement foruseActiveParticipant()?.session_id
to optimize render performance. Check our docs for more info!
Improvements
useThrottledDailyEvent
now allows multiple daily-js events to be registered in a single throttling queue. Events handled in the same queue are guaranteed to be handled in the same order as they were emitted. Check the docs for more info!useDevices
returns new error states as returned bycamera-error
events. Head over to our docs to learn more!
This release requires @daily-co/daily-js@0.33.0.