Google Cast is a technology that enables multi-screen experiences, which allows users to send content from mobile devices and personal computers to their TVs. You can use the Google Cast Android API to add casting functionality to your Android app so users can view your app content on their big screens.
Questions tagged [android-cast-api]
40 questions
0
votes
0 answers
Android Chromecast support MediaRouter drawable resource issue
Recently began upgrading Google's CastCompanionLibrary from v2.5.2 to the latest v2.9.1. Apparently v2.5.2 relied on android-support-v7-mediarouter-v22.2.1, while latest v2.9.1 has a gradle dependency for mediarouter-v25.0.0. All is well, until this…

AndroidRocks
- 292
- 4
- 16
0
votes
1 answer
How to determine when remote display drops frames?
When I cast via the Remote Display API, sometimes I notice the receiver application drop frames. Is there a way to programmatically determine when frame drop occurs?

plátano plomo
- 1,672
- 1
- 18
- 26
0
votes
0 answers
Can one use CastRemoteDisplay.API and Cast.API on the same GoogleApiClient?
I am developing an Android app with CastRemoteDisplay (Cast SDK v2). When another app starts casting, I want to ensure my app stops casting, so I create my CastOptionsBuilder with the following listener:
Cast.Listener listener = new Cast.Listener()…

plátano plomo
- 1,672
- 1
- 18
- 26
0
votes
0 answers
How to implement own cast.receiver.media.Player
Preface
I have own player with own native audio engine. Recently I decided to add cast functionality to it. To 'stream' audio to custom cast application I decided to use WebSocket and send float32 PCM over it and then play via WebAudio API. Because…

CAMOBAP
- 5,523
- 8
- 58
- 93
0
votes
1 answer
Where i can find APPLICATION_ID for Google cast SDK
mMediaRouteSelector = new MediaRouteSelector.Builder()
.addControlCategory(CastMediaControlIntent.categoryForCast("YOUR_APPLICATION_ID"))
.build();
If I pay $5 for google cast sdk then I can use this sdk for multiple devices for testing purpose…

Anuj Kalal
- 83
- 1
- 10
0
votes
0 answers
Incorporating CORS header in default media player
The cast player API provides 3 ways of streaming protocol(Hls, Dash, SmoothStreaming), if our media does not use any of these and uses progressive download, how can we incorporate our host has the updated CORS header into our media player like we…

jensiepoo
- 571
- 3
- 9
- 26
0
votes
1 answer
Chromecast Sender and Receiver Communication
According to the Google Custom Receiver documentation, if our app performs authentication we can load the customData in json format in our sender application. In my case, I did something similar to the following,
MediaInfo mediaInfo = new…

jensiepoo
- 571
- 3
- 9
- 26
0
votes
0 answers
Finish sending media from Android to Chromecast. (Back to chromecast home-screen)
I am following this Google Developers tutorial and I have written my Android Sender with the Media Chanel to send my songs to chromecast.
The app works well but, when I want to stop the connection,(every time I call teardown() method) my apps logo…

Juanjo
- 298
- 1
- 15
0
votes
1 answer
Dialog custom title to match non-custom title
One of my dialogs has a non-custom title:
NameDialog.java
public class NameDialog extends DialogFragment {
@Override
@NonNull
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new…

AlanRosenthal
- 61
- 4
0
votes
1 answer
How can I pass other custom data to my custom VideoCastControllerActivity in Cast Companion library?
I am using CCL to implement cast functionality in my android app. CCL has a target activity (the default is VideoCastControllerActivity) that it will launch when the user clicks on the mini player or on notifications. If I have other data that I…

startoftext
- 3,846
- 7
- 40
- 49