Do I need to host my receiver app on my own server? - chromecast

When I register a Chromecast receiver app, it asks for a URL. Is that where the receiver html file is?

Either you need to use one of our receivers (Styled or Default), in which case you do not need to register any URL or you need to use your own custom receiver which requires you to arrange for its hosting. See tour docs.

Related

Is there a way to retrieve the IP Address of a Sender?

Using a custom receiver is it possible to retrieve the IP address of a specific sender ?
No, you cannot but if you have a custom receiver, you can simply send the ip address from your sender to your receiver using either the customData that is available on a number of existing API calls or use a custom channel/namespace to do it.

How to define a webcal route in NancyFx, Web API, etc?

I have a route in nancy that currently returns an .ics file. But it's an http route and I would like it to be webcal so that devices will know it's a subscription and handle it automatically.
How can I get nancy to respond to a webcal route?
It's simple. Webcal isn't a real protocol.
When you click a link that's a "webcal://" address, the browser resolves that to an http request, but because it was a "webcal://" address, the browser knows it's a calendar subscription and will try add the subscription to whatever software you have that supports that (for example Outlook).
So to get this to work, you just need to change the link address from "http://yoursite.com/youricsfile" to "webcal://yoursite.com/youricsfile" and let the browser or device handle the rest!
EDIT
More information from wikipedia...
The Webcal protocol prefix is used to trigger an external protocol handler which is passed the URL of the .ics file rather than being passed the downloaded contents of the file, in much the same way feed is sometimes used to trigger external RSS readers. The idea is that with this protocol prefix the target file should be subscribed to rather than imported into the calendar application as would happen with a simple download.

How to pass custom data/parameters to Chromecast receiver via URL?

Is it possible to have a Chromecast sender application to pass custom data to the receiver in the URL? The goal is to pass user-specific data to the receiver so it can generate the appropriate contents each time it's called.
An example of this would be a simple to-do list. When the user casts to their device, that user's data should be passed via URL to the receiver so that their task list can be loaded in the custom receiver.
I haven't seen any tutorials or much information on this in the Cast documentation.
If you mean passing parameters as part of the receiver url that loads the receiver, the answer is no; there is no such thing. You can either use the customData that can be passed to the receiver in a number of APIs, or you can create a custom data channel if the former is not adequate for your needs.
The Cast receiver URL is specified as a static URL when you're registering/publishing the app on the Google Cast SDK Developer Console so it is not possible to add custom parameters.
However you can use the Cast Messages system to send data between a Cast sender and Cast receiver. It's similar to the messaging system in modern browsers.

Glympse API event handling

I am trying to launch glympse app by using an intent and receiving the information through broadcast. Is there any way that I will be notified about the events occurring like ticket removed, expired, updated etc?
There sure is.
We created a library project to make this easier for you. It can be found here: https://github.com/Glympse/glympse-app-sdk/tree/master/Android/GlympseIntentsLib
A sign-in is required to view these documents that might be helpful.
Tutorial: https://developer.glympse.com/Content/client/app/guides/Glympse_Intents_Tutorial.html
Reference Docs: https://developer.glympse.com/Content/client/app/guides/Glympse_Intents_Reference.html
Specifically, check out the method CreateGlympseParams.setCallbackAction(String). This will allow you to set an action which will be used to broadcast a message back to your app.
Another option is to use CreateGlympseParams.setEventsListener(EventsListener). With this method, you can supply an object that implements GlympseApp.EventsListener. Using this method, our library handles the broadcast under the covers and your object's methods will be invoked as the event occur.

How can I display an endless loop of images via Google Cast?

I'm just getting started with a simple sender app and the default media receiver. Is it possible to either:
a. send a list of images that Chromecast will loop over
b. send a single url that Chromecast will refresh on an interval, letting the server "cycle" the images through
I'd want this to continue without the sender application needing to be open. I was hoping to not have to create a custom media receiver, as I'm assuming I'd be able to do what I want to do. It seems like I'd have to implement a lot of boilerplate and register the custom application just for some fairly simple functionality.
Yes, it is possible but you need to write your own receiver to do that; the Default/Styled receivers that are available for you do not do what you have in mind.

Resources