Android: Picture-in-picture Mode
This article should give you an idea on how to implement native Android Picture-in-Picture (PiP) feature for conference calls in your VidyoClient-based application.
Declare PiP support
<activity
android:name="com.vidyo.vidyoconnector.ui.MainActivity"
...
android:supportsPictureInPicture="true"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation">
...
</activity>Switch your activity to PiP
Check if PiP is supported on device
private val isPipSupported by lazy {
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N &&
packageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE)
}Observe PiP
Define PiP Actions
PiP Management
Handle PiP
Handle PiP mode changes:
Add broadcast receiver to listen to PiP actions:
Unregister PiP actions receiver when exiting PiP mode (used in Observe PiP):
Last updated