Skip to content

Commit 51992be

Browse files
committed
fix: make methods private
1 parent b7f4386 commit 51992be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/src/state-store/audio-player.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class AudioPlayer {
104104
}
105105
};
106106

107-
onVoiceRecordingPreviewPlaybackStatusUpdate = async (playbackStatus: PlaybackStatus) => {
107+
private onVoiceRecordingPreviewPlaybackStatusUpdate = async (playbackStatus: PlaybackStatus) => {
108108
const currentProgress = playbackStatus.currentPosition / playbackStatus.duration;
109109
if (currentProgress === 1) {
110110
await this.stop();
@@ -114,7 +114,7 @@ export class AudioPlayer {
114114
};
115115

116116
// This should be a arrow function to avoid binding the function to the instance
117-
onPlaybackStatusUpdate = async (playbackStatus: PlaybackStatus) => {
117+
private onPlaybackStatusUpdate = async (playbackStatus: PlaybackStatus) => {
118118
if (!playbackStatus.isLoaded) {
119119
// Update your UI for the unloaded state
120120
if (playbackStatus.error) {

0 commit comments

Comments
 (0)