mauimauer / cheapcast

It's CheapCast.
Apache License 2.0
399 stars 107 forks source link

Custom service #6

Closed cucko closed 11 years ago

cucko commented 11 years ago

An option to add custom service(by specifying receiverPage url and protocol) for development purposes would be awesome.

mauimauer commented 11 years ago

Already on my list :D

cucko commented 11 years ago

nice!!! keep up the good work.

mauimauer commented 11 years ago

A new version supporting this is underway to the Play Store.

To register a custom App enable the "Custom Service"-flag in the Preference Activity.

You can see registered apps at: http://:8008

To register a new app issue a raw POST to http://:8008/registerApp JSON Payload:

{"appName":"YourApp", "appUrl": "http://www.yourapp.com/app?$query", "protocols": [ "ramp" ]}

cucko commented 11 years ago

perfect. thank you

cucko commented 11 years ago

i'm trying to build chrome sender app i registered my app, but its listed on :8008 but cast_api.addReceiverListener("MyApp", onReceiverList); is returning empty list. should i restart the service after registering the app? as i can see, on restart service list of registered apps is reverted to default.

mauimauer commented 11 years ago

Hmmm, actually I've never looked at the client side of the ChromeCast SDK.

Restarting the Service will reset the App list. What does GET :8008/apps/ return after registering your app?

cucko commented 11 years ago

:8008/apps/ returns server error (when opening in browser) :8008 gives list of all registered app, including mine

mauimauer commented 11 years ago

Whoops. I meant /apps/YourAppName

cucko commented 11 years ago

hmm.. how to post xml here :)

ok, via email

cucko commented 11 years ago
MyCloudPlayer Legacy stopped On Mon, Aug 12, 2013 at 6:44 PM, Sebastian Mauer notifications@github.comwrote: > Whoops. I meant /apps/YourAppName > > — > Reply to this email directly or view it on GitHubhttps://github.com/mauimauer/cheapcast/issues/6#issuecomment-22507092 > . ## Goran Sirkarovski Cucko
cucko commented 11 years ago

everything works fine with last update. thanks.