File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments