MediaPlayer todo's

 Package name : com.todokanai.musicplayer



2024/7/18

Todo

  • General

    - PathPicker에서 external memory 선택 기능 추가하기


  •  CustomPlayer

  - CustomPlayer의 constructor parameter 중에서 seed,playList,shuffleMode,currentMusic,loop의 initial value를 굳이 받아와야 하는건지 재고할것 


  • SettingsViewModel

    - apply() 에서 동일 item이 중복 scan되는 현상


  •  PathPickerViewModel

   -  close 한 다음, dialog를 다시 열었을 때, 이전의 currentPath 값이 유지되는 현상  *(1)



Fixed 

  •   CustomPlayer.kt

    -setMusic(music:Music?,context:Context) : playList 전체에서 exception 발생시 getCircularNext의 infinite loop 현상 fix

   ->  기존의 setMusic 작업을 setMusicPrimitive()로 분리

    -> 새로 생성한 상위 method인 setMusic()에서 getCircularNext의 infinite loop 체크

고찰 : setMusic(music:Music?, context:Context)을 Context.setMusic(music:Music?)으로 Refactor 할까 망설이다가 기각함. ( 엉뚱한 곳에서 호출할 위험성 배제 ) 


//--------------------------------------------------------

2024/7/19

Todo

  •  General

   - Github 연동

   - MusicService의 생성 시점을 lazy하게 처리할것


  • MusicService

  - serviceModel 패턴 제거하기  -- fixed



2024/7/21

Todo

  •  General

  -2024/7/18 *(1) 항목의 현상은 IO 작업이 끝나기 전에 새로운 IO 작업이 시작되는 상황으로 판단됨

   - CustomPlayer.kt has not been initialized 에러가 자주 발생하고 있음

   - systemService에 대한 dagger Injection 도입


2024/7/22

Todo

  • General
    - Widget 기능 추가하기
    - gradle의 targetSdk를 31->33으로 수정 -> 31로 설정할 경우 대부분 경로의 media file이 인식 안되는 현상 있음.


2024/07/23

Todo

  • PathPickerDialog
      LazyColumn의 recomposition 최적화

2024/7/26
Fixed
  • FileListView, FileHolder
      recomposition 최적화 부분 확인 완료

2024/7/28
Fixed
  • Compose 파트의 Modifier 재배치
2024/7/29
Fixed
  • gradle dependency cleanup

2024/7/30
Todo
  • SettingsViewModel
    apply(context:Context, button:View)에서 더 깔끔한 IO 작업 중복 방지 방식은 없는지 고민할것

    Fixed
  •    SettingsViewModel
        ScanMusicList의 과정 개선

2024/7/31
Fixed
  •    removed unnecessary classes.   SettingsFragment의 dialog on/off 여부 값을 viewModel에서 view로 옮김

2024/8/2
Fixed
  • MyMediaSession
    setMediaPlaybackState_td 에서 run을 apply로 수정

2024/8/3
Todo
  • PathPickerDialog
        PathPickerViewModel을 viewModel 상속하지 않게 수정, Dialog 띄울때 parameter로서 전달하게 변경할 것
        -> Dialog 새로 띄울때마다 FileModule의 새로운 instance를 제공하기 위함

2024/8/5
Todo

댓글

이 블로그의 인기 게시물

Rules ( Flexible )