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
|
-
|
|
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