react-native-tpstreams 1.1.8-dev.2 → 1.1.8-dev.3
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.
|
@@ -42,13 +42,6 @@ class TPStreamsRNPlayerView(context: ThemedReactContext) : FrameLayout(context)
|
|
|
42
42
|
addView(playerView, LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT))
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
override fun onAttachedToWindow() {
|
|
46
|
-
super.onAttachedToWindow()
|
|
47
|
-
player?.let { p ->
|
|
48
|
-
playerView.player = p
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
45
|
override fun requestLayout() {
|
|
53
46
|
super.requestLayout()
|
|
54
47
|
if (!isLayoutUpdatePosted) {
|
|
@@ -266,7 +259,6 @@ class TPStreamsRNPlayerView(context: ThemedReactContext) : FrameLayout(context)
|
|
|
266
259
|
override fun onDetachedFromWindow() {
|
|
267
260
|
super.onDetachedFromWindow()
|
|
268
261
|
player?.pause()
|
|
269
|
-
playerView.player = null
|
|
270
262
|
}
|
|
271
263
|
|
|
272
264
|
fun releasePlayer() {
|