Skip to content

Instantly share code, notes, and snippets.

@jbrechtel
Created June 29, 2012 23:41
Show Gist options
  • Select an option

  • Save jbrechtel/3021434 to your computer and use it in GitHub Desktop.

Select an option

Save jbrechtel/3021434 to your computer and use it in GitHub Desktop.
Hulu
object Hulu {
def playVideo(video: Content) {
try {
video.streamToTV()
} catch {
case t:Throwable => playNextAd()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment