google-cast-sdk

Getting actual width of Chromecast receiver UI

天涯浪子 提交于 2020-12-15 05:25:50
问题 I have a second generation Chromecast connected to a monitor. I'm receiving 1080p60 from the Chromecast. The Cast documentation states in several places that the UI is at the resolution of 720p: While Chromecast displays the receiver page on a 720p graphics plane, other Cast platforms including Android TV may display the page up to 1080p. And, this note on media formats: Images have a display size limitation of 720p (1280x720). Images should be optimized to 1280x720 or less to avoid scaling

Updating Chromecast receiver status text after start

∥☆過路亽.° 提交于 2020-12-13 04:52:10
问题 On my Chromecast custom receiver, I can set the status text like so: const instance = cast.framework.CastReceiverContext.getInstance(); const options = new cast.framework.CastReceiverOptions(); options.statusText = 'Custom status text!!'; instance.start(options); This text is displayed on potential cast senders. I'd like to be able to change this text after the receiver instance has already been started. Is this possible? If so, how can it be done? 回答1: Having the application started, is

Updating Chromecast receiver status text after start

大憨熊 提交于 2020-12-13 04:50:49
问题 On my Chromecast custom receiver, I can set the status text like so: const instance = cast.framework.CastReceiverContext.getInstance(); const options = new cast.framework.CastReceiverOptions(); options.statusText = 'Custom status text!!'; instance.start(options); This text is displayed on potential cast senders. I'd like to be able to change this text after the receiver instance has already been started. Is this possible? If so, how can it be done? 回答1: Having the application started, is

Get Chromecast sender URL on receiver

帅比萌擦擦* 提交于 2020-12-12 05:41:18
问题 Is it possible for a Chromecast receiver to determine a particular sender's URL? I can get a list of senders: const context = cast.framework.CastReceiverContext.getInstance(); context.getSenders(); This returns an object like this: { id: "01234567-8901-2345-6789-abcdefabcdef.0:160531083194132871", userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWeb…L, like Gecko) Chrome/86.0.4240.198 Safari/537.36" } However, this doesn't contain the URL of the sender. I need to figure out the URL

Get Chromecast sender URL on receiver

*爱你&永不变心* 提交于 2020-12-12 05:41:08
问题 Is it possible for a Chromecast receiver to determine a particular sender's URL? I can get a list of senders: const context = cast.framework.CastReceiverContext.getInstance(); context.getSenders(); This returns an object like this: { id: "01234567-8901-2345-6789-abcdefabcdef.0:160531083194132871", userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWeb…L, like Gecko) Chrome/86.0.4240.198 Safari/537.36" } However, this doesn't contain the URL of the sender. I need to figure out the URL

Get Chromecast sender URL on receiver

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-12 05:41:08
问题 Is it possible for a Chromecast receiver to determine a particular sender's URL? I can get a list of senders: const context = cast.framework.CastReceiverContext.getInstance(); context.getSenders(); This returns an object like this: { id: "01234567-8901-2345-6789-abcdefabcdef.0:160531083194132871", userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWeb…L, like Gecko) Chrome/86.0.4240.198 Safari/537.36" } However, this doesn't contain the URL of the sender. I need to figure out the URL

skipNext skipPrevious Google Cast greyed out

人盡茶涼 提交于 2020-01-03 03:00:07
问题 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

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

自闭症网瘾萝莉.ら 提交于 2020-01-02 04:51:10
问题 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

Start cast session for a cast device

不问归期 提交于 2019-12-23 18:13:18
问题 I've got this use case: Detect cast devices and save their id, names and information; In automatic way, connect to predefined device and start cast session with some content. I've studied the Google Cast API v3 and it seems really hard. While with v2 it was possible since the sender app controls 90% of the process, i.e. connection with device and load content, with v3 the session is totally managed by the framework and a session is started only whit user intervention. The only method that it

Why is Chromecast SDK for iOS so big when installed with Cocoapods?

一笑奈何 提交于 2019-12-19 11:19:43
问题 I recently added the Chromecast SDK to my project, and GoogleCast.framework is nearly 650MB . Is that the normal size? If not, how can I decrease the size? I installed it with Cocoapods (the google-cast-sdk pod) and my project is all in Swift. 来源: https://stackoverflow.com/questions/53465950/why-is-chromecast-sdk-for-ios-so-big-when-installed-with-cocoapods