Skip to content

Conversation

@WentuM
Copy link
Owner

@WentuM WentuM commented Nov 21, 2020

No description provided.

@WentuM
Copy link
Owner Author

WentuM commented Dec 27, 2020

android_mediaPlayer.mp4

Музыка играет на фоне
Залил видео только сейчас, потому что в задании не было указано о том, что надо сделать скрин-каст, а потом узнал от одногруппников, что вы в конце какой-то пары сказали залить)

} else {
mediaPlayer?.start()
}
} else if (mediaPlayer != null && mediaPlayer!!.isPlaying) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mediaPlaye?.isPlaying == true


if (this.song != song) {

if (song != null) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше использовать лет чем иф-ы, но эт так общий совет

}

fun stopSound() {
if (mediaPlayer != null) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

проверка кажется лишней

override fun onStopTrackingTouch(p0: SeekBar?) {}

})
seekBar.max = mediaPlayer!!.duration

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mediaPlayer?.duration ?: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants