@@ -161,7 +161,7 @@ export const MediaPlayer = ({ hiddenMode = false }: MediaPlayerProps) => {
161161 const {
162162 autoAdvanceBookmarks, selectedBookmarkId, getCurrentMediaBookmarks, loadBookmark,
163163 maxLoops, loopCount, setLoopCount, setIsLooping, loopDelay
164- } = state as any ;
164+ } = state ;
165165
166166 // Increment loop counter
167167 const nextCount = ( loopCount || 0 ) + 1 ;
@@ -173,8 +173,8 @@ export const MediaPlayer = ({ hiddenMode = false }: MediaPlayerProps) => {
173173 if ( isDone ) {
174174 // If auto-advance enabled, move to next bookmark
175175 if ( autoAdvanceBookmarks && selectedBookmarkId ) {
176- const list = ( getCurrentMediaBookmarks ?.( ) || [ ] ) . slice ( ) . sort ( ( a : any , b : any ) => a . start - b . start ) ;
177- const idx = list . findIndex ( ( b : any ) => b . id === selectedBookmarkId ) ;
176+ const list = ( getCurrentMediaBookmarks ?.( ) || [ ] ) . slice ( ) . sort ( ( a , b ) => a . start - b . start ) ;
177+ const idx = list . findIndex ( ( b ) => b . id === selectedBookmarkId ) ;
178178 if ( list . length > 0 ) {
179179 const next = list [ ( idx + 1 + list . length ) % list . length ] ;
180180 if ( next ) {
@@ -293,7 +293,7 @@ export const MediaPlayer = ({ hiddenMode = false }: MediaPlayerProps) => {
293293 // Handle media ended
294294 const handleEnded = ( ) => {
295295 console . log ( "Media playback ended" ) ;
296- const state = usePlayerStore . getState ( ) as any ;
296+ const state = usePlayerStore . getState ( ) ;
297297 if ( state . isQueueActive ) {
298298 state . playNextInQueue ?.( ) ;
299299 return ;
0 commit comments