react-native-tpstreams 1.1.8-dev.1 → 1.1.8-dev.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.
|
@@ -265,12 +265,12 @@ class TPStreamsRNPlayerView(context: ThemedReactContext) : FrameLayout(context)
|
|
|
265
265
|
|
|
266
266
|
override fun onDetachedFromWindow() {
|
|
267
267
|
super.onDetachedFromWindow()
|
|
268
|
-
|
|
268
|
+
player?.pause()
|
|
269
|
+
playerView.player = null
|
|
269
270
|
}
|
|
270
271
|
|
|
271
272
|
fun releasePlayer() {
|
|
272
273
|
try {
|
|
273
|
-
playerView.player = null
|
|
274
274
|
player?.release()
|
|
275
275
|
} catch (e: Exception) {
|
|
276
276
|
Log.e("TPStreamsRN", "Error releasing player", e)
|