|
|
@@ -16,6 +16,7 @@
|
|
16
|
16
|
|
|
17
|
17
|
package org.jitsi.meet.sdk;
|
|
18
|
18
|
|
|
|
19
|
+import android.annotation.TargetApi;
|
|
19
|
20
|
import android.app.Activity;
|
|
20
|
21
|
import android.app.PictureInPictureParams;
|
|
21
|
22
|
import android.os.Build;
|
|
|
@@ -53,6 +54,7 @@ class PictureInPictureModule
|
|
53
|
54
|
* including when the activity is not visible (paused or stopped), if the
|
|
54
|
55
|
* screen is locked or if the user has an activity pinned.
|
|
55
|
56
|
*/
|
|
|
57
|
+ @TargetApi(Build.VERSION_CODES.O)
|
|
56
|
58
|
public void enterPictureInPicture() {
|
|
57
|
59
|
if (!isPictureInPictureSupported()) {
|
|
58
|
60
|
throw new IllegalStateException("Picture-in-Picture not supported");
|