Releases: andy-leezard/react-audio-tracks
Releases · andy-leezard/react-audio-tracks
v1.2.7
Patch Changes
- 29ce783: bugfix - track instance always returning null at first render
v1.2.6
Patch Changes
- 2c98eea: allow accessing audioref on track stream interface and remove a built-in caption property ('description') which should be accessed from the custom 'metadata' property. Keep it less heavy in boilerplate.
v1.2.5
Patch Changes
- 8383035: bugfix/define subtitles on audio registration
v1.2.4
Patch Changes
-
37009bd: 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.
v1.2.3
Patch Changes
- 22fe772: Fix RegistrationArgTuple export (2)
v1.2.2
Patch Changes
- 578d7d4: Fix type export: RegistrationArgTuple
v1.2.1
Patch Changes
- c7527b7: Add feature: control individual tracks' playback rate value
v1.2.0
Minor Changes
- 1d2a29f: Better support parameter types for
registerAudio
and registerAudios
method.
Breaking change: the parameter for registerAudios has changed from one array of arguments to the enumerated classic list of arguments for flexibility and readibility.
v1.1.1
Patch Changes
- 0c63ac7: New track method:
isPlaying()
and pauseTrack()
which is a shortcut of getState().isPlaying
and togglePlay(false)
. Also clarified the ts docs for togglePlay()
method.
v1.1.0
Minor Changes
- f6dd883: Default export changed into a named export (RATM). Also this version introduces the expandable real-time metadata updates (previously limited to 'narrator' metadata.)
Patch Changes