Superpatterns Pat Patterson on the Cloud, Identity and Single Malt Scotch

25Mar/142

Visualforce on Chromecast, as a Service!

After writing my last blog entry, on how to display any Visualforce Page on Google Chromecast, it occured to me that I could run the app on Heroku. So, if you have a Google Chromecast, and a Salesforce login with API access enabled, you can try it out right now.

Go to https://vf-chromecast.herokuapp.com/; you'll see this page:

Visualforce on Chromecast

Follow the instructions, log in, authorize the app to access your data, and you'll be able to select a Visualforce Page to 'cast' to your TV.

Select a Visualforce Page

One new feature here - if you select a Visualforce Page that uses a standard controller, and is thus expecting a record ID as a parameter, you'll get the opportunity to select a record. For simplicity, I'm just showing the first 10 records returned by the database.

Select a Record

Choose a record, hit send, and you'll see the page displayed by the Chromecast, in this case, it's a Mini Hack we ran a couple of Dreamforces ago:

Success

As always, the code is on GitHub.

Having done Raspberry Pi, Minecraft, and now Chromecast, I'm looking for new ideas for interesting Salesforce integrations. Leave a comment if you think of one!

Comments (2) Trackbacks (1)
  1. Hi Pat! Thanks for making such an awesome tool available.

    Unfortunately, while trying to use this service recently, we began getting errors returned from our chrome device.

    [browser] [SEVERE] Error: Uncaught Error: Timeout (chrome-extension://dlioch…/background_script.js @ Line: 86

    The weird thing is that we have other TVs displaying this same VF page and I can connect using this app and change the VF page those are displaying, but if the TV is turned off and back on, and the cast essentially stopped, we can no longer cast this app to the TV anymore.

    Did anything change recently on either the sender or receiver? I’m new to the chromecast and how it all works. Any help would greatly be appreciated.

    I will mention that casting a tab to any of our chromecast devices still works, but of course that doesn’t keep the cast alive 24/7 like it is when using your app.

    Thanks!

    Jason

  2. Nothing has changed in my app since I first got it working, but there might have been an update to the Chrome browser on the Chromecast device. I’ll take a look when I can and see if I can figure it out.


Leave a comment