android / android/codelab-exoplayer-intro

Java style code into PlayerActivity.kt

Open
#70 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
235
Forks
129
PR merge metrics
No merged PRs in 30d

Description

Into 4. Create a playlist we have next part of code:

private void initializePlayer() {
[...]
exoPlayer.addMediaItem(mediaItem) // Existing code

val secondMediaItem = MediaItem.fromUri(getString(R.string.media_url_mp3));
exoPlayer.addMediaItem(secondMediaItem);
[...]
}
void and ; into .kt files

Contributor guide

Open the contributing guide

Research direction

Open PlayerActivity.kt and inspect the “4. Create a playlist” section, especially initializePlayer(). Compare the shown Java-style syntax with the Kotlin file and update the void and semicolon usage; the section should contain valid Kotlin code without Java-only syntax.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.