![]() ![]() Without this setting, each time the activity moves in and out of PiP mode the activity will be restarted resulting in playback restarting from the beginning of the video during the transition. The android:supportsPictureInPicture entry enables PiP for the activity while the android:configChanges property notifies Android that the activity is able to handle layout configuration changes. PiP mode is configured on a per activity basis by adding the following lines to each activity element for which PiP support is required: The second step in implementing PiP mode is to enable it within the project’s manifest file. ![]() To modify the SDK setting, locate the Gradle Scripts –> adle (Module: app) file and increase the minSdkVersion setting from 14 to 26: PiP mode is currently only supported on devices running Android 8.0 (API 26) or newer.
0 Comments
Leave a Reply. |