This is the official Google+ home of Google Cast Developers. See "About Community" for important developer links.
See all
Members (7,963)
Leon Nicholls's profile photo
Kristan Uccello's profile photo
Shawn Shen's profile photo
Vadim Gorokhovsky's profile photo
Ali Naddaf's profile photo
Antonio Fontan's profile photo
Wayne Piekarski's profile photo
Gustavo Menezes's profile photo
Majd Bakar's profile photo
Leon Nicholls's profile photo
Mark Scott's profile photo
Prameet Shah's profile photo
John Affaki's profile photo
Jagjit Chawla's profile photo
Jon Pokrzyk's profile photo
Madura Pictur's's profile photo
Akhil Yendluri's profile photo
Mehrzad Karami's profile photo
Nia Kathoni's profile photo
Håvard Tverrå's profile photo
Taras Bazyshyn's profile photo
Harsha Ramesh's profile photo
Mateusz Biełous's profile photo
Mausam Sharma's profile photo

Stream

Join this community to post or comment
 
Hello, I am writing an android app to cast a HLS stream with DD+ Content. I am getting errors like

[120.137s] [cast.player.api.Host] error: cast.player.api.ErrorCode.PLAYBACK/110 (Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('video/mp2t; codecs="avc1.4d4028,ec-3"') is unsupported.)





I tried both ec-3 & mp4a.a6, both doesn't seem to work.



I find it is working fine with the same content in mp4 format. I could see DD logo lit up in my AVR , to which I have connected my chromecast device and the surround sound plays fine in that case.

I started with the sample android sender app for cast & I tried different receivers including the sample receiver app ( MPL version is 1.0.0)

Is HLS playback with DD+ contents supported in Chromecast ?
If yes, is there anything extra i need to do from my sender /receiver app to get it working
1
Pradeep Kumar's profile photoLeon Nicholls's profile photo
3 comments
Add a comment...

purva nahar

Android  - 
 
How to launch different activities for different content on mini controller click??


I'm adding google cast support to an app, and I can only target a single activity to launch on mini controller and notification click. I configure it in OptionsProvider subclass like

@Override public CastOptions getCastOptions(Context appContext) { Log.d(TAG, "getCastOptions: "); NotificationOptions notificationOptions = new NotificationOptions.Builder() .setTargetActivityClassName(VideoPlayerActivity.class.getName()) .build(); CastMediaOptions mediaOptions = new CastMediaOptions.Builder() .setNotificationOptions(notificationOptions) .setExpandedControllerActivityClassName(VideoPlayerActivity.class.getName()) .build(); CastOptions castOptions = new CastOptions.Builder() .setReceiverApplicationId(appContext.getString(R.string.app_id)) .setCastMediaOptions(mediaOptions) .build(); return castOptions; }

It's ok when I'm playing video, but I also have music in app, and it doesn't have fullscreen controller. So on notification/mini controller click I want to launch VideoPlayerActivity if video is casting and MusicActivity when music is casting.

Can't figure out how to do it, and can't find it out in documentation. I'm not sure if it's possible.

How do I achieve this?


1
purva nahar's profile photoLeon Nicholls's profile photo
3 comments
 
They don't have to be related. The Android framework provides API's to launch any activity from another activity.
Add a comment...

Makan Singh

General Question  - 
 
My Chromecast App Not Showing In Chromecast App Store here
https://www.google.com/intl/en_in/chromecast/apps/.
some days ago it was visible .Help Me
1
Leon Nicholls's profile photo
Add a comment...

Sameer Singh

General Question  - 
 
Is there any source code available for RemoteDisplay Unity plugin... I need to change it a bit to adapt to some other functionalities. I need all the native code which is compiled in a library like .a and .aar files.
If not is it possible to share the native code?
1
Leon Nicholls's profile photo
 
We do not provide the source code for the Unity Plugin.
Add a comment...
 
I have implemented Chromecast SDK for iOS. At times it crashes on the Init function of GCKDeviceScanner "GCKDeviceScanner(filterCriteria: filterCriteria)". PFA Image.

I am calling the function on "viewDidLoad()" of RootViewController. It doesn't crash every time but 1 out of 10 times.

Can anyone please assist. Thanks a lot
1
taimur ajmal's profile photoLeon Nicholls's profile photo
3 comments
 
Are you implementing your own Cast button? The GCKDeviceScanner class from v2 is deprecated.
Add a comment...
 
Receiver Application URL cache timeout

Hello,

How long does it take for the Receiver Application URL to propagate? Is there a way to flush the cache?

Regards
1
Leon Nicholls's profile photoLeandro Zanol's profile photo
4 comments
 
Thank you Leon, it worked!
I thought there was some backend cache.
Add a comment...

Andy Barker

Receiver  - 
 
My mpeg-dash manifest has two drm pssh sections defined one for PlayReady and one for Widevine. I want to modify my receiver code to always choose Widevine it is currently defaulting to Playready. How can I do this?
1
Andy Barker's profile photoLeon Nicholls's profile photo
3 comments
 
We are looking at ways to make that easier, but for now you have to do it this way.
Add a comment...
 
Hey,

We have custom web receiver, on my iOS application i want to replay a media or change meida.
What it the right way to do it?
For now i am killing the session and recreating it.

I am using google cast ios sdk v2.

Thanks! 
1
Eliza Sapir's profile photoLeon Nicholls's profile photo
3 comments
 
You should not have to recreate the media channel or the session. Your app can simply send the media info for the same media to play again.
Add a comment...
 
Hi,

I'm casting an HLS event playlist stream to a custom receiver app. I have to say custom receiver app doesn't do anything with SeekRequest.

Our segment size in the media playlist is 12 seconds. when seeking back, it works great and can go back any amount of time(15 secs, 1 min, 10 mins, ...). When seeking forward, it seeks only max to segment size (12 seconds), even when seek to next 30 secs, 10 mins, ... .

What can cause the problem? our stream? MediaPlayer library?

Any suggestion?
1
Leon Nicholls's profile photo
 
Please file an issue with a log and sample stream: https://code.google.com/p/google-cast-sdk/issues/list
Add a comment...
 
Hello guys, do you have an analytics about how many users use Chromecast "Firmware" which doesn't handle ES6?

Basically my question is: Is it "safe" to use ES6 without ES5 transpilation for Custom Receiver development today?
1
Leon Nicholls's profile photo
 
All chromecasts are automatically updated to the latest version. Do your development against the latest public firmware of chromecast.
Add a comment...
 
From a sender application, is it possible to prolong the duration until a Cast receiver application automatically terminates?

When launching a Youtube playlist on Chromecast the Youtube receiver application will terminate after 20 minutes if its playback is paused.

Our users however want to still control Youtube playback with our mobile app, even after Youtube playback was paused for a long time.

Any suggestions?
1
Ali Mehrpour's profile photoLars Blumberg's profile photo
2 comments
 
Out use case is to control playback of already existing receiver apps with a hardware controller that we build (senic.com). It allows to control playback and change volume. This said, we're not going to implement our receiver app. As I understand, we have to live with the fact that the receiver app may terminate after a timeout. Since our users want to only use our hardware controller not being able to change timeout is not good news for us.
Add a comment...

About this community

Google Cast is the easiest way for developers to share content with a TV. The Google Cast SDK provides everything you need develop Google Cast applications on Android, iOS and desktop Chrome platforms. You may post your app to the community only if you make the source code available for other developers to learn. The Google Cast team monitors and supports several sites and resources that might interest Google Cast SDK developers. Here is how you can use these sites: • Stack Overflow: For your specific coding questions. • GitHub: For filing bugs against the Google Cast sample apps. • Cast issue tracker: For filing general Cast bugs or feature requests. • Google Cast Developers Community : For developers to share their experiences and ask questions about Google Cast which are not explicitly covered by any of the above.

Naveen Yadav

General Question  - 
 
Hi Everyone,
I am a new to developing apps on google cast and android. I started developing an sample android app that cast videos. Using the Cast SDK 3.0, for queued mp4 videos if there is broken url/error video. Google cast is getting stuck using custom receiver.

Thanks for any direction.
1
Leon Nicholls's profile photo
 
It is your responsibility to handle broken URL's in the receiver.
Add a comment...

Vim Venture

Receiver  - 
 
In the video on the page linked below, it was mentioned that the Receiver SDK 3.0 is coming "soon". Is there a timeline for this release? A target release date would help inform planning around our development efforts. Thanks!

https://developers.google.com/cast/
View content from a mobile device on your TV.
1
Add a comment...

Jim Snyder

Receiver  - 
 
Hello,

I wrote my custom receiver back in early 2015 for my android app that is being sold in Google Play. With integrating Cast, I'm using Google Drive to host the static .html file and the associated .js/image files (26 files using 2.5 megs of disk space).

I missed the first couple of warning emails from Google Drive that Google Drive will no longer allow webpages/sites to be hosted from Drive. Couple of questions:

1. Does Cast still require the use of https to host these files? If not, would I be able to just use my application's website (from 1and1.com) (ie: http://my-android-app-website.com/my-cast-html-files) to host those without https? If https is not required, then the only change I really need to make is just changing the value of "Receiver Application URL" in "Google Cast SDK Developer Console" to be "http://my-android-app-website.com/my-cast-html-files", correct?

2. If https is still required for this, what other free alternatives do I have for hosting the custom receiver files under https?

Thanks,
Jim
1
Ali Naddaf's profile photoJim Snyder's profile photo
2 comments
 
Traffic is low: just the static .html page, .css, .js (jquery), probably 2.5 megs and I might be able to get that lower. What is shown in Cast from my android app are images served from the user's phone.
Add a comment...

Makan Singh

Android  - 
 
My App Does Not Connect To Some Chromecast Devices.Its Weired,Cast Button Is Visible But Still Unable To Connect .
I Am Using CCL Version 2.8.4. Help Me About This
1
Makan Singh's profile photo
3 comments
 
i did chrome remote debugger and i got some errors.
1.Mixed Content: The page at 'https://domain.com/player.html' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://localhost:8008/v2/ipc'. This request has been blocked; this endpoint must be available over WSS.
2.Uncaught AssertionError: Assertion failed: Cannot send without an open socket
3.Uncaught SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
Please help me
Add a comment...
 
Chromecast discovery on chrome://inspect/#devices doesn't always work. I've submitted feedback many times about it. I'm on Chrome 52.0.2743.116 64bit on Ubuntu. This is a screenshot of the issue. Almost all of my Chromecast devices are configured for me to debug them and most of the time they do show up but sometimes they don't. 
1
Carlos Solorzano's profile photoDavid Poole's profile photo
4 comments
 
Hmm. I wonder if a pcap Trace of it not working. Compare to when it does will be useful?
Add a comment...
 
Hi, I'm starting an app that supports Google Cast. I need to show custom elements on the cast (that's the easy part) as well as a video stream. I'm not sure if I can use the built-in player for this since the only thing the Android application receives is raw h.264 frame.

Can I send raw h.264 frames to the Cast device? If so, do you have some pointers or examples to share? Thanks.
1
Leon Nicholls's profile photo
 
Formats supported by a Cast receiver: https://developers.google.com/cast/docs/media
Add a comment...

Leon Nicholls
owner

Announcements  - 
 
Google Cast SDK Migration Guide
If you want to migrate your existing Cast sender app to the new Cast SDK v3, we have created a handy guide: http://goo.gl/oA3TbX

The guide covers:
• Migrating from Cast Companion Library
• Migrating from Android and iOS SDK v2

Happy Casting!

#googlecastsdk #googlecast
7
Daniel Barreto's profile photoLeon Nicholls's profile photo
2 comments
 
CCL is a set of functionality that was most valuable with our earlier SDK on Android. As we've incorporated most of it's functionality in V3, we will maintain CCL in regards to identified bugs, but have no major plans for additional development areas. New features, or identified differences with V3, will be considered for V3 based on developer impact. We suggest you evaluate migration to V3 as well as provide us feedback on any desired functionality.
Add a comment...
 
Is it possible to remote control a receiver application from the web/cloud? Or does Cast only allow commands from sender applications in the same local area network?
1
Ali Mehrpour's profile photoLars Blumberg's profile photo
2 comments
 
Thanks a lot for clarifying Ali. Please keep us updated if it should change.
Add a comment...
 
Hello,

I have an account at Google Developer Console under my company's main account and I want to know if it's possible to use it at Google Cast to develop a Chromecast custom receiver without the need of registering again and paying the $5 fee it asks me even when signed in.

Is there any way to associate my existing account with it?
1
Leon Nicholls's profile photoLeandro Zanol's profile photo
2 comments
 
I thought it was centralized, thank you! ;)
Add a comment...