google-cast

Can Chromecast cast .m3u8 live stream on default receiver?

徘徊边缘 提交于 2019-12-06 04:59:27
I have tried casting .mp4 on default receiver. It works great. Used the same setting to play m3u8 and metadata comes but video doesn't play. Want to know if I can cast .m3u8 as well on the default receiver. If so what MIME type should I use and additional setting should I set? HLS (if that is what is in your m38u playlist) is supported. You need to make sure CORS requirements are satisfied (something that is not required for plain mp4). Look at the docs under https://developers.google.com/cast/ to see what is supported and what is not, and find references to sample projects there as well. The

Where can I find APPLICATION_ID

你。 提交于 2019-12-06 04:22:56
问题 I'm learning cast api for android and I'm stuck at this part: mMediaRouteSelector = new MediaRouteSelector.Builder() .addControlCategory(CastMediaControlIntent.categoryForCast("YOUR_APPLICATION_ID")) .build(); Where can I find this APPLICATION_ID and what is it? 回答1: Unfortunately, when doing Google Cast Android Sender Application tutorial, you should do multiple steps not described well on site to develop Chromecast applications: You must sign up (yes, pay 5$) for Google Cast SDK After this

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

Anyone get the chromecast android examples working in android studio?

核能气质少年 提交于 2019-12-05 20:32:24
I've had a terrible time trying to get these to load without errors. Either the support frameworks fail or the cast api. Anyone have a repeatable method? The github examples say 'coming soon' for loading into android studio. user2812812 I haven't converted one of the test projects over but i have been able to create a new project that works with the chromecast device. First create a new project. Create a libs folder in the root of your applications module folder From the Chromecast SDK download copy the GoogleCastSdkAndroid.jar file into your libs folder. In your applications module build

Unable to find enum descriptor PBFieldDescriptorProto_Label while unit testing

强颜欢笑 提交于 2019-12-05 20:24:45
After adding the GoogleCast framework to the unit test target I'm getting the following exception right before the tests start to run. Apart from that the SDK is fully functional. I'd appreciate any ideas! 2014-02-25 18:03:08.475 otest[3786:303] Unknown Device Type. Using UIUserInterfaceIdiomPhone based on screen size 2014-02-25 18:03:08.593 otest[3786:303] *** Assertion failure in -[GCKPB_PBFieldDescriptor initWithFieldDescription:rootClass:], /Volumes/BuildData/pulse-data/agents/wpye22.hot/recipes/415961027/base/googlemac/iPhone/Chromecast/SDKv2/Protos/../../../../ThirdParty/ProtocolBuffers

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

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