A place for Google Cast developers everywhere to meet, share and discuss the latest on Google Cast development
See all
Members (4,448)
Ali Naddaf's profile photo
Antonio Fontan's profile photo
Jagjit Chawla's profile photo
John Affaki's profile photo
Kristan Uccello's profile photo
Leon Nicholls's profile photo
Leon Nicholls's profile photo
Majd Bakar's profile photo
Mark Scott's profile photo
Prameet Shah's profile photo
Shawn Shen's profile photo
Vadim Gorokhovsky's profile photo
Abdul Rahman's profile photo
27th Studio's profile photo
Aaron Powell's profile photo
Abdul Qabiz's profile photo
Aaron Smith's profile photo
! ! ! Anna Strelkova's profile photo
Abd Mur's profile photo
Aaron White's profile photo
!!!! 'AAltamir Farias (altamir)'s profile photo
Abhishek Karan (BABA)'s profile photo
[Your NameTV]'s profile photo
Abd Gafur A Wandan Husain (69hanes)'s profile photo

Stream

Join this community to post or comment

Jon Slenk

Android  - 
 
hi, I'm seeking help re: Android WiFi off-on scenarios. One test is to start cast-and-play, then turn off Android phone WiFi, wait 3 sec, then turn it back on. We're using the CastCompanionLibrary. It ends up with: "W/CastDeviceController( 1388): [controller-0052 API] Ignoring message. Namespace 'urn:x-cast:xyzpdq' has not been registered." What do I need to do where to have the sender & receiver re-attach? Thank you!
1
Ali Naddaf's profile photoJon Slenk's profile photo
3 comments
 
Ah, right. Thanks, will do!
Add a comment...
 
I am new to Google Cast on Chrome, and was trying to put together an Angular based application which uses the Chrome API to cast.  The application uses UI-Router to switch to several views, some of which contain partial views based on the demo at https://github.com/googlecast/CastVideos-chrome.  The application loads the cast API and other JS in the main page, and then swaps out views.

The demo mentioned above will synchronize with the cast state when you refresh the page.  However, in my app, if I swap out a player view, and then return to the view and re-run the CastPlayer constructor to re-sync, I am finding that although the onInitSuccess callback is invoked after chrome.cast.initialize() is called, the sessionListener and receiverListener callbacks from chrome.cast.ApiConfig() are never invoked after the swap.  My page then "thinks" that cast is not available.

If, however, I do a page refresh on that page, the very same code runs, but this time all the callbacks are invoked, and I resync with the state of the Chrome cast.  The Google demo I was modeling is a single page, and also works on a refresh, but I wanted to see how it would behave if I attempted to reload the CastPlayer.  I add this snippet to the markup down in the footer:

  <input type="button" onclick="reload();">Reload</input>
      <script type="text/javascript">
        var castPlayer = new CastPlayer();
        function reload() {
             castPlayer = new  CastPlayer();
         }
      </script>

Pressing the Reload button exhibits the same behavior I was seeing in my app - the callbacks for ApiConfig are never invoked.

Is there any way that I could run the initializeCastPlayer() function without having to refresh the entire page?

Thanks!
Reference Chrome Sender: CastVideos-chrome application shows how to cast videos from Chrome browser that is fully compliant with the Cast Design Checklist.
1
Peng Ying's profile photoJoel Williamson's profile photo
4 comments
 
How cool!  I will be sure to check it out
Add a comment...
 
i have a problem with CastMediaPlayerStreamingDRM sample. I followed all steps as describe here https://github.com/googlecast/CastMediaPlayerStreamingDRM. I published my receiver app, and changed my APP_ID in my sender.js to published app id. But in debug log show: "init success","receiver list empty", and when i launch app it show: "launch error" without any details. What am i missing?
Contribute to CastMediaPlayerStreamingDRM development by creating an account on GitHub.
1
Leon Nicholls's profile photoHung Hoang Manh's profile photo
2 comments
 
My streaming content had been protected by DRM, so i tried to use CastMediaPlayerStreamingDRM. I can't launch the receiver app. It seems to be the receiver app was not found. 
Add a comment...

James Kulikowski

General Question  - 
 
for android devices that support full device mirroring over Cast. Is there a method that I as a developer could use to disable either my full application from being displayed or disable or mask specific views in my app such as when a user enters sensitive info for example application password ? 
1
Phillip Stewart's profile photorenan jegouzo's profile photo
4 comments
 
it's possible, I seen app that refuse to play video if mirroring activated.
Add a comment...

Leon Nicholls
owner

Videos  - 
 
 
100 days of Google Dev, Episode 78/100

Correct placement of the Google Cast icon in your application is essential for a great experience. Find out why placement of the Google Cast icon in an enabled application matters in this video explainer.

#GoogleDev100

https://www.youtube.com/watch?v=ShrRdMdJOuU&list=PLOU2XLYxmsIJDPXCTt5TLDu67271PruEk&index=78
1
Add a comment...
 
Starting in about 20 days, any app for iOS that happens to include a WatchOS app must non-optionally be built with Bitcode for every framework as well, and that is for iOS not just WatchOS – otherwise it's not just an App Store rejection, the app can't even be submitted. This means that time is very short for Google to release an updated SDK with Bitcode support or any such app would need to remove the GoogleCast SDK. Building a Bitcode version of the framework is just a simple setting when building and should only take a moment, but cannot be performed without source code. Xcode to perform that step has been available since mid-June. What is the ETA on an updated library?
1
Leon Nicholls's profile photo
 
We have raised this issue with the Cast team.
Add a comment...

Roberto Andrade

General Question  - 
 
I was wondering if since the Google Cast protocol evolved from v1 to v2 in early Chromecasts to recent ones, does this mean that Kitkat 4.4.2 which was the first to introduce the concept of Casting your Screen to the receiver only works with v1 Receivers but not v2?
1
Ali Naddaf's profile photoRoberto Andrade's profile photo
7 comments
 
Ok, I see. I've seen a few implementations out there that are able to reproduce it, such as Reflector and YouMap Cast Receiver.... was wondering how these guys were able to do such a thing?
Add a comment...

Kaj Toet

Receiver  - 
 
I've been looking for a place where I could ask this. In the disclaimer it is said it is against rules to expose the Chromecast API to third parties. I would like to know if I could set up a stream of OpenGL calls (much like Chromium and ClusterGL) so I could stream published games with low latency from my server.
1
Leon Nicholls's profile photoKaj Toet's profile photo
7 comments
 
Okay, thank you Leon, will do.
Add a comment...
 
Select Android users have been reporting that they cannot connect to Chromecast with our app, Haystack TV. When looking their logs we see an onApplicationConnectionFailed:2005 
Looking up the code for 2005 it says "Application Not Running"
We have tested internally and it seems that for all our Chromecast devices are able to connect properly.

Is there a way to provide instructions to the users to get more details on what could be happening? 
1
Leon Nicholls's profile photoIsh Harshawat's profile photo
7 comments
 
+Leon Nicholls perfect thank you!
Add a comment...

周平安

Receiver  - 
 
Does anyone know YouMapCastReceiver.apk? I find it can be used as a receiver for  sender googlecast app, like youtube, chromcast and other applications
1
Roberto Andrade's profile photo
 
I've used it for testing mostly and it looks like it was built with the same code base from the MediaShell that ships on Android TV, which in ways is very similar to the one that ships with the Chromecast. I've been trying the beta and and it works most of the time, we've had some bugs which we reported but I don't think this community would be a good source for discussions on it. You'll probably have better luck on the developer's forum: http://www.vmlite.com/index.php?option=com_kunena&Itemid=158
Add a comment...
 
Hey guys I could use some help with this issue I posted on stackoverflow 
1
1
hong vinh vu's profile photo
Add a comment...

About this community

This is the official Google+ home of Google Cast Developers. 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.
 
In GCKFilterCriteria, I have to give app ID. Where can I get the application ID? 
1
Leon Nicholls's profile photo
 
You have to register in the Google Cast Developer Console: https://cast.google.com/publish/
Add a comment...

Aravind S

Android  - 
 
Does cast api in android supports subtitle with srt format?

Based on this link https://developers.google.com/cast/docs/media, looks like there is no support for srt subtitle file format. Is there any plan to support srt file in next release?
1
Leon Nicholls's profile photo
 
Some of our partners have added support for SRT in their player themselves. Alternatively, you can convert your subtitles into the formats supported by Google Cast.
Add a comment...

Sébastien Andre

General Question  - 
 
Hi,
I'm writing an audio application that can cast audios onto the chromecast device.

At this time i use the default media player (or the styled one). 

When it's required, i have to transcode the audio stream if it's not supported by the chromecast.

I would know which is the best "http server" design to allow a live transcoding while casting in order to keep functionnalities like "seek position" ?

At this time, my HTTP server that provide streams use ACCEPT-RANGE, ETAG, CONTENT-RANGE headers.

It's works fine when i don't need to transcode "on the fly" the audio stream. In this case, i know the content length of the casted media and i can set the CONTENT-LENGTH header and i can handle "content range" requests.

When i need to transcode, i don't know in advance the length of the casted media and i'm not able to serve  CONTENT-RANGE requests. The casting works but in this case, i can't use seek position.

I saw that the chromecast can use HLS protocol, but i didn't see how this protocol can help me.

Have you any suggestions ?

Best regards,
ANDRE Sébastien.
1
Add a comment...
 
I'm pretty stuck. I'm making an app that plays video. The user can press a button to move to the next video in the playlist. I don't want to preload the next video. I am using GCKMediaControlChannel to load the media. If I simply try to load the next media item, I get a Network Connection Error (GCKError). If I remove the current item from the queue, then try to add and load the next item, the receiver will not load the next media item. It will remain in the same state as when I am connected to a receiver device and the application is launched, but there is no loaded media. This seems like a simple problem to solve, but I cannot figure it out. Loading all of my items in the queue up front is pretty much the worst option I can think of. Any help?
1
Mark Schultz's profile photoIan Barber's profile photo
3 comments
 
Thats great!
Add a comment...

Leon Nicholls
owner

Videos  - 
 
 
100 days of Google Dev, Episode 76/100

Alex Danilo covers how volume control UX in a Cast enabled application should work, and shows it in action!

#GoogleDev100

https://goo.gl/5uBb64
1
Add a comment...
 
how to add CastCompanionLibrary in android. I am trying to run this example :- https://github.com/googlecast/CastVideos-android.
But I am getting error
"error: No resource identifier found for attribute 'popupTheme' in package 
 'com.google.android.libraries.cast.companionlibrary'" in cast_activity.xml
Reference Android Sender: CastVideos-android application shows how to cast videos from an Android device that is fully compliant with the Cast Design Checklist.
1
1
Ali Naddaf's profile photoPradeep Jadhav's profile photo
 
If you are running into issues related to this library, please ask your question on StackOverflow or if you think it is a bug in the library, open a ticket on its issue tracker on GitHub.
Add a comment...

René Malmgren

General Question  - 
 
Hi, I am having a bit of trouble with CC and MPEG-DASH. The player seems to bugout when you add more than one Period to the MPD.

The first Period loads fine but the reciver does not seem to move to the next Period, and he seems to ignore duration fields in the Period elements

Does the CC support multiple Periods in the MPD, if not is there any way you could implement this yourself?
1
Leon Nicholls's profile photoRené Malmgren's profile photo
2 comments
 
will do, I just wanted to ask first, just to check if I am doing something incredibly stupid or not 
Add a comment...

Ali Naddaf
moderator

Announcements  - 
 
CCL Updated to v2.3

The two major changes in this update are:
-  Removing RemoteControlClient and moving completely to MediaSessionCompat.
- Using the new MediaStyle for NotificationCompat, that was introduced in a recent update to the v7 app-compat support library, for both pre and post Lollipop versions.

To allow for any potential minor updates, a v2.3 Release/Tag will be built in a couple of days.
CastCompanionLibrary-android is a library project to enable developers integrate Cast capabilities into their applications faster and easier.
6
9
Richard Burgess's profile photoHarbhajan Singh Ghatauray's profile photo
Add a comment...

William Rosenbloom

General Question  - 
 
Is there a maximum amount of text that can be sent as a text message from a sender application to a receiver application?
1
Ali Naddaf's profile photo
 
You should  keep the payload of a message below 64K
Add a comment...