I recently posted a question on Stack Overflow (http://stackoverflow.com/questions/28557218/chromecast-sender-that-knows-when-session-started-from-cast-extension) but it hasn't gotten much traction, so I thought I'd offer it up here as well to see if smarter people than I can help out. Basically, I'm interested in allowing users to trigger my Chrome sender just with the extension button (which works well for most apps). The SDK docs for building a Chromecast Sender on Chrome mention this:
"There is also a third way of getting a Cast session. A user with the Cast extension installed in their Chrome browser can mirror any Chrome tab to a Cast device. If the user lands on your site, for which you have implemented a Cast app, tab mirroring will automatically trigger a new Cast session instead of putting the browser in mirroring mode."
However, when I do this with my sender, it connects to the proper receiver app but doesn't load the media (which, when triggered via my chromecast icon, does work as there's a callback function that loads it up). So I'd like to better understand how my sender code can know when a session has been started directly via the extension; how can my app be notified? Is there a way to get it hooked into the same callback that my sender icon uses? Is there an event that's raised? Does it execute its own callback (and if so, how can we hook into that callback)?
In a similar stack overflow question, had answered indicating that it was possible, but not how to do it. Any insights would be very useful. Thanks much!
A really stellar service that GitHub is offering, including all sorts of tools, some free hosting, GitHub private repos, etc. If you've got a .edu email address this is definitely worth your time.
- University of Maryland, College ParkPh.D, American Literature, 1999 - 2005
- Brigham Young UniversityB.A., English, 1994 - 1999
- Timpview High School1990 - 1994
- Hockey Showdown
- Cut the Rope: Magic
- PAC-MAN +Tournaments
- Color Switch
- Goat Simulator
- VidAngelLead Streaming Media Engineer, 2016 - present
- Brigham Young UniversityProfessor, Digital Humanities, 2005 - 2016
- University of Maryland, College ParkEnglish Department Graduate Instructor, 2000 - 2005
- Maryland Institute for Technology in the HumanitiesProgram Associate, 1999 - 2005
- Bartleby PressAssociate Editor, 2002 - 2005
"The Rich Get Richer and the Poor Get Poorer: The Effect of Open Access ...
An open-access journal allows free online access to its articles, obtaining revenue from fees charged to submitting authors. Using panel dat
Famous Authors' Handwritten Outlines for Great Works of Literature
Writing a novel (or a story, for that matter) is confusing work. There are just so many characters running all over the place, dropping hint
The #1 University in the U.S. for spinning off startups may surprise you
With roughly one-third the budget of MIT, the University of Utah was named the number 1 school in the U.S. for creating startup companies.
Op-Art: Like it or Unfriend It - Graphic - NYTimes.com
The United States of America has requested your friendship on Facebook.
The Official Google TV Blog: Sit Back, Relax And Let Plex For Google TV ...
If you want to display all of your favorite local and online media (video, music, and photos) seamlessly on your big screen TV, check out Pl
The History of the English Language in Ten Animated Minutes | Open ...
Yesterday, the Open University released 'The History of English in 10 Minutes,' a witty animated sequence that takes you through 160