Category : chromecast

using the guide https://codelabs.developers.google.com/codelabs/cast-videos-android/#4 everything works fine. My problem is when I change in the JSON "mp4" :"https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/mp4/" to a server I have setup with a video. It wont play on Chromecast. The video works perfectly on the phone, but I keep getting errors when O try to cast it: W/MediaControlChannel: received unexpected error: Invalid ..

Read more

I know there are similar/related post on this but doesnt get a working answer. I am developing an app with Google Chromecast feature. The cast is working just fine until I add the mini controller fragment, which makes MediaRouteButton disabled. I am currently following this tutorial by Google. Here’s the mini controller fragment layout. <fragment ..

Read more

Below code works fine with remote media url. How can we cast local media files? remoteMediaClient.load(buildMediaInfo()); private MediaInfo buildMediaInfo() { MediaMetadata metaData = new MediaMetadata(MediaMetadata.MEDIA_TYPE_PHOTO); String url = imageUrl; metaData.putString(MediaMetadata.KEY_TITLE, imageData.getTitle()); metaData.addImage(new WebImage(Uri.parse(imageData.getThumbnail()))); return new MediaInfo.Builder(url) .setStreamType(MediaInfo.STREAM_TYPE_NONE) .setContentType("image/*") .setMetadata(metaData) .build(); } Source: Android..

Read more