google-cast-sdk

Chromecast MetaData

牧云@^-^@ 提交于 2019-12-12 05:51:52
问题 Having all sorts of fun trying to get the desired metadata, lockscreen and cast popup behaviour working in a music app that utilizes a custom receiver on Chromecast. Here's where I've got to.. private void _dummyRemotePlay(long id,String mUrl,String artist,String title,String iUrl) { // CODE THAT CHANGES BEHAVIOUR MediaTrack.Builder b = new MediaTrack.Builder(id,MediaTrack.TYPE_AUDIO); b.setSubtype(MediaTrack.SUBTYPE_METADATA); // END CODE THAT CHANGES BEHAVIOUR MediaMetadata mdata = new

How can I get list of all cast devices using cast SDK?

假装没事ソ 提交于 2019-12-11 17:03:11
问题 I am struggling to get list of all chrome cast devices available in my network, I am able to make it work with there default implementation of adding a media router button in the action bar. What I want to achieve is to get list of all cast devices available including Fire stick and smart TV (basically all the devices which supports DIAL protocol). My list will contain all chrome cast devices and all DIAL protocol supported devices. I am using cast 3 SDK provided in android. 回答1: MediaRouter

Google Cast custom receiver timing out

我与影子孤独终老i 提交于 2019-12-09 16:46:17
问题 Using the Google CAF Receiver SDK, how do we prevent the receiver from timing out and automatically killing the cast session when we're not using the receiver player? The standard Google Cast use case is to send media from a device to the cast receiver and have the receiver render the media using a player. The CAF receiver SDK provides this functionality in a beautiful, simple way using the element cast-media-player . But for those instances when we want to cast from a device and render

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

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

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

Google Cast custom receiver timing out

浪尽此生 提交于 2019-12-04 06:23:59
Using the Google CAF Receiver SDK , how do we prevent the receiver from timing out and automatically killing the cast session when we're not using the receiver player? The standard Google Cast use case is to send media from a device to the cast receiver and have the receiver render the media using a player. The CAF receiver SDK provides this functionality in a beautiful, simple way using the element cast-media-player . But for those instances when we want to cast from a device and render content where it's not relevant to use the cast-media-player (e.g. an HTML dashboard), how do we keep the