ionic-chromecast 0.0.5 → 0.0.7

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.
@@ -366,7 +366,8 @@ public class IonicChromecast {
366
366
 
367
367
  Logger.info(TAG, "loadMedia: url=" + effectiveUrl + ", contentType=" + contentType);
368
368
 
369
- MediaMetadata md = new MediaMetadata(MediaMetadata.MEDIA_TYPE_MOVIE);
369
+ // Use GENERIC to ensure subtitle surfaces in Cast UI overlays.
370
+ MediaMetadata md = new MediaMetadata(MediaMetadata.MEDIA_TYPE_GENERIC);
370
371
  if (title != null && !title.isEmpty()) md.putString(MediaMetadata.KEY_TITLE, title);
371
372
  if (subtitle != null && !subtitle.isEmpty()) md.putString(MediaMetadata.KEY_SUBTITLE, subtitle);
372
373
  if (imageUrl != null && !imageUrl.isEmpty()) md.addImage(new WebImage(android.net.Uri.parse(imageUrl)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-chromecast",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Capacitor plugin for Google Cast SDK (Chromecast) integration with Android support",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",