Skip to content

Commit

Permalink
Changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-leezard committed Sep 26, 2023
1 parent 558dfb2 commit 37009bd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .changeset/tiny-cats-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"react-audio-tracks": patch
---

New feature - `updateFrequencyMs` option allows you to subscribe to `timeupdate` events at a fixed custom frequency, eliminating device or browser-specific frequency differences that can result in unexpected user experience.
New feature - `onResolve` callback that runs ONLY when the audio has played successfully without error.

New property - `useTrackStream` hook provides a new value `trackIsPlaying`, which is a shortcut for `trackInstance.getState().isPlaying`.
New property - `error` state and `ended` states are separated and distinguished in `AudioItemState`.

+ Minor performance improvements and bug fixes.

1 comment on commit 37009bd

@vercel
Copy link

@vercel vercel bot commented on 37009bd Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.