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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-media3",
3
- "version": "1.1.028",
3
+ "version": "1.1.030",
4
4
  "description": "Media player for Cordova using Google's media3 ExoPlayer framework",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-media3",
@@ -35,6 +35,7 @@ import android.view.*;
35
35
  import android.widget.*;
36
36
  import android.os.Handler;
37
37
  import android.os.Looper;
38
+ import android.os.Build;
38
39
  import androidx.annotation.NonNull;
39
40
  import androidx.appcompat.widget.ContentFrameLayout;
40
41
 
@@ -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;