ionic-chromecast 0.0.5 → 0.0.8
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.
|
@@ -357,16 +357,12 @@ public class IonicChromecast {
|
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
// Cache buster para evitar que el receiver siga mostrando el media anterior
|
|
361
360
|
String effectiveUrl = url;
|
|
362
|
-
try {
|
|
363
|
-
String suffix = (url != null && url.contains("?")) ? "&" : "?";
|
|
364
|
-
effectiveUrl = url + suffix + "_cb=" + System.currentTimeMillis();
|
|
365
|
-
} catch (Exception ignored) {}
|
|
366
361
|
|
|
367
362
|
Logger.info(TAG, "loadMedia: url=" + effectiveUrl + ", contentType=" + contentType);
|
|
368
363
|
|
|
369
|
-
|
|
364
|
+
// Use GENERIC to ensure subtitle surfaces in Cast UI overlays.
|
|
365
|
+
MediaMetadata md = new MediaMetadata(MediaMetadata.MEDIA_TYPE_GENERIC);
|
|
370
366
|
if (title != null && !title.isEmpty()) md.putString(MediaMetadata.KEY_TITLE, title);
|
|
371
367
|
if (subtitle != null && !subtitle.isEmpty()) md.putString(MediaMetadata.KEY_SUBTITLE, subtitle);
|
|
372
368
|
if (imageUrl != null && !imageUrl.isEmpty()) md.addImage(new WebImage(android.net.Uri.parse(imageUrl)));
|
package/package.json
CHANGED