Sunday, May 4, 2014

Chromecast Development Tutorial - Hello World

This guide is being moved to:

Please visit the site for complete tutorials and more resources for Chromecast programming!

Note: This is part of a multi-part series on developing web applications that integrate Google's Chromecast SDK. I am working on making a complete resource for web development with the Chromecast, so consider this a pre-release version and please comment if you see any issues or have recommendations on how to improve the tutorial.
Part 1 - Introduction
Part 2 - Getting Started
Part 3 - Hello World
Part 4 - Your Own First App

3 Hello World
The first program in a new language is almost always the “Hello World” program. For that reason, we are going to be using Google’s demo app called “CastHelloVideo” to get our first app up and running. To begin, log into your development server and clone the GitHub repository located at:

user@test:~$git clone

Move the folder into your /var/www directory so that you can access it via your IP address (or domain if you have configured one).
At this point, you should be able to point your browser at your IP address and see your “CastHelloVideo-chrome” folder.
Screen Shot 2014-04-29 at 11.49.15 PM.png
Figure 3-1 - HelloWorld Running

Click into the folder and you should see the application. Play around for a bit and ensure that you can connect to your Chromecast and successfully cast a video. In the coming chapters, we will be building an application from the ground up that will have similar features, but for now, you can look at the source code or simply understand the various controls.

Continue on to Part 4 Here

1 comment:

  1. The online videos work great but when I enter Local url of videos residing in my harddisk in the "Enter custom media URL:" is shows "media error". Is it possible to load local videos?