cordova-plugin-media3 1.1.21 → 1.1.23

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.021",
3
+ "version": "1.1.023",
4
4
  "description": "Media player for Cordova using Google's media3 ExoPlayer framework",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-media3",
@@ -231,8 +231,8 @@ public class Player {
231
231
  public void createPlayer() {
232
232
  Log.i(TAG, "Playing " + config.getUri());
233
233
 
234
- Uri mediaUrl = config.getUri(); // Your method to get the URL
235
- if (mediaUrl != null && android.webkit.URLUtil.isValidUrl(mediaUrl)) {
234
+ // String mediaUrl = config.getUri().toString(); // Your method to get the URL
235
+ // if (mediaUrl != null && android.webkit.URLUtil.isValidUrl(mediaUrl)) {
236
236
  // Proceed with ExoPlayer setup using mediaUrl
237
237
  if (config.useInlineView()) {
238
238
  // Using a dialog doesn't work for us, as controls are drawn in HTML view (cordova ui)
@@ -247,11 +247,11 @@ public class Player {
247
247
  if (config.useInlineView()) {
248
248
  setController(config.getController());
249
249
  }
250
- } else {
251
- // Handle invalid or null URL: e.g., show an error message, log the issue, or use a placeholder.
252
- Log.e("ExoPlayerDebug", "Invalid media URL: " + mediaUrl);
253
- sendError("Invalid media URL: " + mediaUrl);
254
- }
250
+ // } else {
251
+ // // Handle invalid or null URL: e.g., show an error message, log the issue, or use a placeholder.
252
+ // Log.e("ExoPlayerDebug", "Invalid media URL: " + mediaUrl);
253
+ // sendError("Invalid media URL: " + mediaUrl);
254
+ // }
255
255
  }
256
256
 
257
257
  public void createDialog() {