Skip to content

Commit 1cb5070

Browse files
authored
Multi-window support (#318)
* Multi-window support Part of the Android player is rewritten to support the multi-window mode. Now, when you turn on the multi-window mode and changing the size of the player window, the video and sound continues without breaks. The example application is updated - support for the multi-window is added to the AndroidManifest. * The VLCTextureView class is moved to a separate file. * Code Formatting * Added in the README how to set up multi-window mode in Android & v 7.1.3 * README update
1 parent b61a238 commit 1cb5070

File tree

8 files changed

+346
-95
lines changed

8 files changed

+346
-95
lines changed

flutter_vlc_player/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 7.1.3
2+
* Added support for multi-window mode in Android.
3+
Credits to Andy Chentsov (https://github.com/andyduke).
4+
15
## 7.1.2
26
* Add Hybrid composition support for Android.
37

flutter_vlc_player/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,25 @@ android {
100100
```proguard
101101
-keep class org.videolan.libvlc.** { *; }
102102
```
103+
<hr>
104+
105+
#### Android multi-window support
106+
107+
To enable multi-window support in your Android application, you need to make changes to `AndroidManifest.xml`, add the `android:resizeableActivity` key for the main activity, as well as the `android.allow_multiple_resumed_activities` metadata for application:
108+
```xml
109+
<manifest ...>
110+
<application ...>
111+
<activity ...
112+
android:resizeableActivity="true">
113+
...
114+
</activity>
115+
...
116+
<meta-data
117+
android:name="android.allow_multiple_resumed_activities"
118+
android:value="true" />
119+
</application>
120+
</manifest>
121+
```
103122

104123
<br>
105124

0 commit comments

Comments
 (0)