react-native-tpstreams 1.1.13-beta.1 → 1.1.13-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,10 +11,7 @@ import com.facebook.react.bridge.WritableMap
|
|
|
11
11
|
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
12
12
|
import com.tpstreams.player.download.DownloadClient
|
|
13
13
|
import com.tpstreams.player.download.DownloadItem
|
|
14
|
-
import androidx.annotation.OptIn
|
|
15
|
-
import androidx.media3.common.util.UnstableApi
|
|
16
14
|
|
|
17
|
-
@OptIn(UnstableApi::class)
|
|
18
15
|
class TPStreamsDownloadModule(private val reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext), DownloadClient.Listener {
|
|
19
16
|
|
|
20
17
|
private val downloadClient: DownloadClient by lazy {
|
|
@@ -14,10 +14,7 @@ import androidx.media3.common.PlaybackParameters
|
|
|
14
14
|
import androidx.media3.common.PlaybackException
|
|
15
15
|
import android.media.MediaCodec
|
|
16
16
|
import android.view.View.MeasureSpec
|
|
17
|
-
import androidx.annotation.OptIn
|
|
18
|
-
import androidx.media3.common.util.UnstableApi
|
|
19
17
|
|
|
20
|
-
@OptIn(UnstableApi::class)
|
|
21
18
|
class TPStreamsRNPlayerView(context: ThemedReactContext) : FrameLayout(context) {
|
|
22
19
|
private val playerView: TPStreamsPlayerView = TPStreamsPlayerView(context)
|
|
23
20
|
private var player: TPStreamsPlayer? = null
|