react-native-youtubte is a popular library which wraps the native youtube library. The native lib attempts to detect if the player is hidden behind other views in order to prevent developers from playing videos in the background. Since the overlay container was always attached to hierarchy, the library stopped playback as it mistakingly detected the player was used in the background. This commit simply attaches the overlay container only when needed so as long as no overlays are displayed, the lib can be used.
|
|
||
1 |
|
1 |
|
2 |
|
2 |
|
|
3 |
|
|
3 |
|
4 |
|
4 |
|
5 |
|
5 |
|
6 |
|
|
7 |
|
|
6 |
|
8 |
|
7 |
|
9 |
|
8 |
|
10 |
|
9 |
|
11 |
|
10 |
|
12 |
|
|
13 |
|
|
11 |
|
14 |
|
12 |
|
15 |
|
13 |
|
16 |
|
14 |
|
17 |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
15 |
|
23 |
|
16 |
|
24 |
|
|
25 |
|
|
17 |
|
26 |
|
18 |
|
27 |
|
19 |
|
28 |
|
|
|
||
24 |
|
33 |
|
25 |
|
34 |
|
26 |
|
35 |
|
27 |
|
|
|
28 |
|
|
|
|
36 |
|
|
29 |
|
37 |
|
30 |
|
38 |
|
31 |
|
39 |
|
32 |
|
40 |
|
33 |
|
41 |
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
|
42 |
|
|
|
43 |
|
|
38 |
|
44 |
|
39 |
|
45 |
|
40 |
|
46 |
|
|
|
||
44 |
|
50 |
|
45 |
|
51 |
|
46 |
|
52 |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
47 |
|
64 |
|
|
|
||
64 |
|
64 |
|
65 |
|
65 |
|
66 |
|
66 |
|
|
67 |
|
|
67 |
|
68 |
|
68 |
|
69 |
|
69 |
|
|
|
70 |
|
70 |
|
71 |
|
71 |
|
72 |
|
72 |
|
|
|
||
2 |
|
2 |
|
3 |
|
3 |
|
4 |
|
4 |
|
|
5 |
|
|
5 |
|
6 |
|
6 |
|
7 |
|
7 |
|
8 |
|
|
|
||
118 |
|
119 |
|
119 |
|
120 |
|
120 |
|
121 |
|
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
|
125 |
|
|
|
126 |
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
121 |
|
130 |
|
122 |
|
131 |
|
123 |
|
132 |
|
|
|
||
149 |
|
158 |
|
150 |
|
159 |
|
151 |
|
160 |
|
152 |
|
|
|
|
161 |
|
|
153 |
|
162 |
|
154 |
|
163 |
|
155 |
|
164 |
|
156 |
|
|
|
|
165 |
|
|
157 |
|
166 |
|
158 |
|
167 |
|
159 |
|
168 |
|
|
|
||
26 |
|
26 |
|
27 |
|
27 |
|
28 |
|
28 |
|
29 |
|
|
|
|
29 |
|
|
|
30 |
|
|
30 |
|
31 |
|
31 |
|
32 |
|
32 |
|
33 |
|
33 |
|
34 |
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
37 |
|
39 |
|
38 |
|
40 |
|
39 |
|
41 |
|
40 |
|
42 |
|
41 |
|
43 |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
42 |
|
52 |
|
43 |
|
53 |
|
44 |
|
54 |
|
45 |
|
55 |
|
46 |
|
56 |
|
47 |
|
|
|
|
57 |
|
|
48 |
|
58 |
|
49 |
|
|
|
|
59 |
|
|
50 |
|
60 |
|
51 |
|
61 |
|
52 |
|
62 |
|
53 |
|
63 |
|
54 |
|
64 |
|
55 |
|
|
|
|
65 |
|
|
56 |
|
66 |
|
57 |
|
67 |
|
58 |
|
68 |
|
|
|
||
70 |
|
80 |
|
71 |
|
81 |
|
72 |
|
82 |
|
73 |
|
|
|
74 |
|
|
|
|
83 |
|
|
|
84 |
|
|
75 |
|
85 |
|
76 |
|
86 |
|
77 |
|
87 |
|
78 |
|
88 |
|
79 |
|
89 |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
80 |
|
101 |
|