From 52088835d0fb8151d8c4153838f9a42e0aa2a9ee Mon Sep 17 00:00:00 2001 From: Arnaud de Mouhy Date: Tue, 22 Sep 2020 18:35:19 +0200 Subject: [PATCH] fix: autoplay disabled on android --- .../main/java/com/reactnativeradioplayer/RadioPlayerModule.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/android/src/main/java/com/reactnativeradioplayer/RadioPlayerModule.kt b/android/src/main/java/com/reactnativeradioplayer/RadioPlayerModule.kt index c5964ff..71d790a 100644 --- a/android/src/main/java/com/reactnativeradioplayer/RadioPlayerModule.kt +++ b/android/src/main/java/com/reactnativeradioplayer/RadioPlayerModule.kt @@ -38,8 +38,6 @@ class RadioPlayerModule(reactContext: ReactApplicationContext) : ReactContextBas UiThreadUtil.runOnUiThread { val item: MediaItem = MediaItem.fromUri(uri) player.setMediaItem(item) - player.prepare() - player.play() //play() } }