This only works automatically on Android >= 8. On other platforms / versions, it relies on the SDK user on implementing a "reduced UI" mode and reacting to the "request PIP" delegate method.