Cordova plugin to enable PictureinPicture support for android > 8.0
Based on the plugin cordova-plugin-pip present in the npm repository.
Methods:
enter(width: int, height:int, success: function, error: function)
cordova.plugins.PIPPlugin.enter(200,400,
function(){console.log("Entered Pip Mode")},
function(error){console.log(error)});
isPip(success: function, error: function)
cordova.plugins.PIPPlugin.isPip(
function(result){console.log(result)},
function(error){console.log(error)});
isPipModeSupported(success: function, error: function)
cordova.plugins.PIPPlugin.isPipModeSupported(
function(result){console.log(result)},
function(error){console.log(error)});
onPipModeChanged(success: function, error: function)
cordova.plugins.PIPPlugin.onPipModeChanged(
function(result){console.log(result)},
function(error){console.log(error)});