-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
이전, 다음 곡 이동 로직 개선 #307
이전, 다음 곡 이동 로직 개선 #307
Conversation
events.contains(Player.EVENT_MEDIA_ITEM_TRANSITION) -> { | ||
val durationMs = player.duration.toInt() | ||
listener.onMediaItemChanged(player.currentMediaItemIndex, durationMs / millisecondsPerSecond) | ||
} | ||
|
||
events.contains(Player.EVENT_TRACKS_CHANGED) -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 이벤트 찾아주셔서 감사합니다 👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생했어용~!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨어용!!
Issue
Overview
EVENT_MEDIA_ITEM_TRANSITION
: 자동으로 시간이 흘러서 다음 곡으로 넘어갈 때 발생하는 이벤트EVENT_TRACKS_CHANGED
: 곡 이동 버튼 클릭시 발생 이벤트 (이전 곡, 다음 곡 모두 발생)현재 곡 진행 길이(positon)
/전체 곡 길이(duration)
이Screenshot