-
Notifications
You must be signed in to change notification settings - Fork 25
Spotify Clone App: Lesson 9
Mert Şimşek edited this page Nov 1, 2019
·
4 revisions
In this lesson, we will learn
- ExoPlayer 2 Basics
- Creating MediaSource
- Live Radio Streaming and Controlling
- Streaming radio using ExoPlayer.
- Changing UI states with player status, dynamically.
//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)implementation 'com.google.android.exoplayer:exoplayer:2.10.1'- Will be available on youtube soon.