chromecast

Volume button not controlling casting device volume from android sender app using cast-sdk v3 by default

做~自己de王妃 提交于 2019-12-08 07:29:07
问题 I am using cast SDK v3 in my android sender app it is working good but the volume controls button doesn't control the casting device's volume by default. I have to expand the volume controls popup and adjust the casting device volume. It is directly controlling the device's volume when cast session resumes. But it loses focus once playback state is changed. private class CastSessionManagerListener implements SessionManagerListener<CastSession> { @Override public void onSessionStarting

Cast devices freeze when casting audio streams

爱⌒轻易说出口 提交于 2019-12-08 04:26:38
问题 I have an issue with casting some third party audio streams. I have relied heavily on https://developers.google.com/cast/docs/player and followed those instructions on how to create a custom receiver for playing the streams. After just a second or so after starting the stream (I don't get any sound) the Cast devices freezes and they stop responding to debug via Chrome and they don't react to stopping the Cast session. Often they are so locked that even issuing a reboot via the Home app doesn

Cast devices freeze when casting audio streams

↘锁芯ラ 提交于 2019-12-08 04:17:26
I have an issue with casting some third party audio streams. I have relied heavily on https://developers.google.com/cast/docs/player and followed those instructions on how to create a custom receiver for playing the streams. After just a second or so after starting the stream (I don't get any sound) the Cast devices freezes and they stop responding to debug via Chrome and they don't react to stopping the Cast session. Often they are so locked that even issuing a reboot via the Home app doesn't work; I have to physically disconnect the power. It's the same behaviour on Chromecast v2 (1.22.79313

iOS app getting a “device authentication error” when scanning for Chromecast devices

前提是你 提交于 2019-12-08 04:14:02
问题 I'm working on an iOS sender app for Chromecast. I have two Chromecast devices set up and was able to detect and connect to both of them until I switched to a different test iPhone, and now when I try to scan for Chromecast devices, the deviceDidComeOnline message is never sent. I am able to reproduce the problem with the sample app here, with version 2.5.1 of the GoogleCast framework. The following is console output from the sample app when it fails to detect a Chromecast: 2015-01-17 07:52

skipNext skipPrevious Google Cast greyed out

孤街醉人 提交于 2019-12-08 02:56:22
As it pertains to How to add/use GCKMediaQueue in Swift? I have added the skip buttons on AppDelegate, and they do appear on the expanded controller screen. But they are greyed out. If I let a video end, then it will play the next in the queue. But then why are the buttons greyed out? That usually means that they are not available to use. But I have 50 videos in the queue, so what am I missing? func addvideos2queue() { for indexloop in 1 ... 50 { debugPrint("**** Attempting #" + String(indexloop) + " to add another to the que") let PTV = playthisvideo() //received random video file name let

How do I keep a ChromeCast route alive when my app is in the background on battery power?

ⅰ亾dé卋堺 提交于 2019-12-07 17:20:39
问题 I'm working on an Android app that supports sending music to a ChromeCast. We'd like users to be able to cast entire music playlists while the app runs in the background. When my Nexus 7 is not connected to USB power and I turn the screen inactivity timeout to 15 seconds in the settings, the app will disconnect from the ChromeCast about 90 seconds after the device powers off its screen. I've identified that I'm getting a MediaRouter.Callback call to onRouteUnselected , and since that's the

Is it actually possible to play SmoothStreaming videos on Chromecast without using (format=mpd-time-csf)?

可紊 提交于 2019-12-07 17:14:01
问题 I'm trying to get a video playing on Chromecast - it's available as an MS Smooth Streaming manifest (example), but I can't specify format=mpd-time-csf (example), as it's not available in that format. Directly passing the manifest URL to the Chromecast doesn't work yet, but will be available for the final SDK release, as stated by Les Vogel here: Playing Smoothstreaming URL by providing Manifest file of smoothstreaming to Chromecast device As I understand it can play dash/smooth videos by

How to fix duplicate libraries - more than one library with package name 'android.support.v7.appcompat'

烈酒焚心 提交于 2019-12-07 15:37:58
问题 Gradle build error - more than one library with package name android.support.v7.appcompat. This project has Chrome Cast in it, so is using android-support-v7-appcompat and CastCompanionLibary-android-master. Project structure is the following: BaseGameUtils CastCompanionLibrary-android-master VideoBrowserActivity android-support-v7-appcompat android-support-v7-mediarouter google-play-services_lib Really tough error because the compiler doesn't give much information other than 'more than one

Java API for ChromeCast

南楼画角 提交于 2019-12-07 13:57:36
问题 Is there any way to connect to a ChromeCast using standard ( desktop ) Java. I am looking for a way to automate our testing and would like our CC:s to play a video automatically. So far I have found this project: https://github.com/vitalidze/chromecast-java-api-v2 But so far I have not been able to get it working. I can find the Chromecast just fine using mDNS, but when I try to connect to it I just get a close from the CC. My testcode: public static void main(String[] args) { try {

Can't get a list of cast devices on the network

大城市里の小女人 提交于 2019-12-07 09:53:34
问题 I'm trying to get a list of cast devices programmatically in Android, without using the MediaRouteActionProvider button in the SDK. I create a MediaRouter and MediaRouteSelector like so: mMediaRouter = MediaRouter.getInstance(this); mMediaRouteSelector = new MediaRouteSelector.Builder() .addControlCategory(CastMediaControlIntent.CATEGORY_CAST) .build(); I then start discovery: mMediaRouter.addCallback(mMediaRouteSelector, mMediaRouterCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN);