cordova-plugin-media3 1.1.28 → 1.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/android/Player.java +1 -0
- package/src/android/Plugin.java +11 -0
package/package.json
CHANGED
package/src/android/Player.java
CHANGED
package/src/android/Plugin.java
CHANGED
|
@@ -296,6 +296,17 @@ public class Plugin extends CordovaPlugin {
|
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
return true;
|
|
299
|
+
} else if (action.equals("isPipModeSupported")) {
|
|
300
|
+
if (self.player == null) {
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
cordova.getActivity().runOnUiThread(new Runnable() {
|
|
304
|
+
public void run() {
|
|
305
|
+
JSONObject response = self.player.isPipModeSupported();
|
|
306
|
+
new CallbackResponse(callbackContext).send(PluginResult.Status.OK, response, true);
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
return true;
|
|
299
310
|
} else if (action.equals("isPipMode")) {
|
|
300
311
|
if (self.player == null) {
|
|
301
312
|
return false;
|