Skip to content

Spotify Clone App: Lesson 9

Mert Şimşek edited this page Nov 1, 2019 · 4 revisions

Overview

In this lesson, we will learn

We will learn

  • Streaming radio using ExoPlayer.
  • Changing UI states with player status, dynamically.

Prepared Resources

//Creates player
ExoPlayerFactory.newSimpleInstance(app.applicationContext)
//Create data source factory
DefaultDataSourceFactory(app.applicationContext, getUserAgent())
//Creates user agent
Util.getUserAgent(app.applicationContext, "spotifyRadioApp")
//Creates media source
ProgressiveMediaSource.Factory(dataSourceFactory).createMediaSource(uri)

Dependencies

implementation 'com.google.android.exoplayer:exoplayer:2.10.1'

Source Code

Branch Lesson 9

Lesson Video

  • Will be available on youtube soon.

Clone this wiki locally