cordova-plugin-media3 1.1.32 → 1.1.34
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/plugin.xml +1 -0
- package/src/android/Plugin.java +6 -6
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
<!-- <framework src="androidx.media3:media3-exoplayer-ffmpeg:1.0.0"/> -->
|
|
33
33
|
<framework src="org.jellyfin.media3:media3-ffmpeg-decoder:1.8.0+1"/>
|
|
34
34
|
<framework src="com.squareup.picasso:picasso:2.8"/>
|
|
35
|
+
<framework src="com.squareup.okhttp3:okhttp:5.2.0"/>
|
|
35
36
|
|
|
36
37
|
<config-file target="res/xml/config.xml" parent="/*">
|
|
37
38
|
<feature name="ExoPlayer">
|
package/src/android/Plugin.java
CHANGED
|
@@ -304,9 +304,9 @@ public class Plugin extends CordovaPlugin {
|
|
|
304
304
|
return true;
|
|
305
305
|
}
|
|
306
306
|
else if (action.equals("isPipModeSupported")) {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
if (self.player == null) {
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
310
|
cordova.getActivity().runOnUiThread(new Runnable() {
|
|
311
311
|
public void run() {
|
|
312
312
|
JSONObject response = self.player.isPipModeSupported();
|
|
@@ -316,9 +316,9 @@ public class Plugin extends CordovaPlugin {
|
|
|
316
316
|
return true;
|
|
317
317
|
}
|
|
318
318
|
else if (action.equals("isPipMode")) {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
319
|
+
if (self.player == null) {
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
322
|
cordova.getActivity().runOnUiThread(new Runnable() {
|
|
323
323
|
public void run() {
|
|
324
324
|
JSONObject response = self.player.isPipMode();
|