chromecast

Chromecast debugging via port 9222 stopped working

被刻印的时光 ゝ 提交于 2019-12-06 04:39:08
问题 I've been using port 9222 to debug Chromecast receiver code for over a year. It stopped working today. I get "You may have to select the shield icon in the address bar to establish a connection" instead of the the debugging URL. There is no shield icon. This problem seems to be spreading slowly at our site. Everything is enabled for the Chrome browser. I tried rebooting chromecast, rebooting PC, update Chrome, the Canary beta version, etc. No joy. Any help is greatly appreciated. 回答1: Got the

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

喜夏-厌秋 提交于 2019-12-06 03:35:30
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 embedding the dash.js player into the receiver app. However, dash.js only plays smooth streaming videos

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

独自空忆成欢 提交于 2019-12-05 21:48:16
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 callback I get when a user disconnects from a route, I'm handling it by tearing down the

Java API for ChromeCast

只愿长相守 提交于 2019-12-05 21:44:53
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 { ChromeCasts.startDiscovery(); // Wait for CC:s to apear Thread.sleep(5000); for (ChromeCast cc : ChromeCasts.get

NullPointerException in Google Play Services When Calling play() on RemotePlaybackClient

人盡茶涼 提交于 2019-12-05 17:30:46
问题 This sample application of mine used to work just fine. Somewhere in the past few months, though, Google updated Google Play Services (and Chromecast itself), and now when I call play() on RemotePlaybackClient for the Chromecast, Google Play Services itself crashes with: E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NullPointerException at com.google.android.gms.cast.media.aq.a(SourceFile:96) at com.google.android.gms.cast.media.n.i(SourceFile:1856) at com.google.android.gms.cast.media.u

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

馋奶兔 提交于 2019-12-05 16:14:24
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); In the onProviderAdded callback method, I only seem to get 3 providers: Android, com.google.android

android.support.v7.app.MediaRouteButton does not display

本小妞迷上赌 提交于 2019-12-05 15:47:02
This is in my layout : <android.support.v7.app.MediaRouteButton android:id="@+id/button_fling" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:background="@drawable/mr_ic_media_route_holo_light" android:layout_height="wrap_content" android:mediaRouteTypes="user" android:layout_weight="1" android:visibility="visible" /> and this in my my activity: @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); mMediaRouter = MediaRouter.getInstance(getApplicationContext()); mMediaRouteSelector = new MediaRouteSelector.Builder() .addControlCategory

Does the Chromecast support casting videos from Reddit? (HLS and Dash videos)

那年仲夏 提交于 2019-12-05 13:13:18
Called proxy with URL http://192.168.xx.xx:8080/3hyw7hwoajn21/HLSPlaylist.m3u8 Called proxy with URL http://192.168.xx.xx:8080/3hyw7hwoajn21/HLS_540_v4.m3u8 Called proxy with URL http://192.168.xx.xx:8080/3hyw7hwoajn21/HLS_AUDIO_160_K_v4.m3u8 Called proxy with URL http://192.168.xx.xx:8080/3hyw7hwoajn21/HLS_224_v4.m3u8 Here's an example Reddit video: https://www.reddit.com/r/me_irl/comments/b3vrs4/me_irl Looking through the JSON , it has a few options for video sources: "reddit_video": { "dash_url": "https://v.redd.it/3hyw7hwoajn21/DASHPlaylist.mpd", "duration": 76, "fallback_url": "https://v

Does google chromecast iOS SDK support lock screen controls?

旧巷老猫 提交于 2019-12-05 12:03:46
I've tried to implement lock screen controls for google Chromecast video streaming app with the latest GoogleCast framework for iOS (2.1.0). I've corrected the example Chromecast app - https://github.com/googlecast/CastVideos-ios Have added UIBackgroundModes row to the Info.plist Added MediaPlayer framework. And added the following code to ChromecastDeviceController.m #import <MediaPlayer/MPNowPlayingInfoCenter.h> #import <MediaPlayer/MPMediaItem.h> ....... - (BOOL)loadMedia:(NSURL *)url thumbnailURL:(NSURL *)thumbnailURL title:(NSString *)title subtitle:(NSString *)subtitle mimeType:(NSString

Can't cast video via google cast correctly in ios app

爷,独闯天下 提交于 2019-12-05 11:22:10
I'm working on a project with custom video player, based on AVPlayer. Trying to integrate google cast. I've made integration based on google tuts: https://codelabs.developers.google.com/codelabs/cast-videos-ios/ But with conversion to swift. Everything seems to work fine, when cast, if video player opens, and there is connected device (or if I connect from panel), I form meta info for file, and it's passed to google cast - everything works fine. But, i have strange behavior: 1) Start casting, open video, then another video, then third video. 2) Stop casting 3) Go to another video, enable