Skip to content

Commit

Permalink
Bug fixed ExoPlayerAnalyticalListenerImp suppressed for now since it …
Browse files Browse the repository at this point in the history
…was causing fatal crashing on some build
  • Loading branch information
kshivang committed Oct 13, 2019
1 parent 8bb29b4 commit ad6d388
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ allprojects {
Add following in build.gradle (App level):
```
dependencies {
implementation 'com.github.rever-ai:goonj:0.4.3'
implementation 'com.github.rever-ai:goonj:0.5'
// Exo Player
implementation 'com.google.android.exoplayer:exoplayer-core:2.10.3'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.10.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import androidx.mediarouter.media.RemotePlaybackClient

open class ItemActionCallbackImp(var operation: String, var onSuccess: ((String?, MediaItemStatus?) -> Unit)? = null) : RemotePlaybackClient.ItemActionCallback() {



override fun onResult(
data: Bundle?,
sessionId: String?,
Expand Down
4 changes: 2 additions & 2 deletions goonj/src/main/java/ai/rever/goonj/player/LocalAudioPlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ internal class LocalAudioPlayer: AudioPlayer {
}

private fun addListeners(){
player?.addAnalyticsListener(ExoPlayerAnalyticsListenerImp)
// player?.addAnalyticsListener(ExoPlayerAnalyticsListenerImp)
player?.addListener(eventListener)
}

Expand All @@ -181,7 +181,7 @@ internal class LocalAudioPlayer: AudioPlayer {

GoonjSessionMediaConnector.release()

player?.removeAnalyticsListener(ExoPlayerAnalyticsListenerImp)
// player?.removeAnalyticsListener(ExoPlayerAnalyticsListenerImp)
player?.removeListener(eventListener)
player?.release()
player = null
Expand Down

0 comments on commit ad6d388

Please sign in to comment.