GithubHelp home page GithubHelp logo

imclab / cast-media-player-library-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mgile/cast-media-player-library-sample

0.0 2.0 0.0 203 KB

A simple example of how to use the Media Player Library. This is not compliant with our UX guidelines.

License: Apache License 2.0

cast-media-player-library-sample's Introduction

Cast-Media-Player-Library-Sample

This sample shows how to use the Media Player Library. It is not a UX complete sample. It shows how to hook up the library with the receiver api.

Setup Instructions

  • Get a Chromecast device
  • Upload the receiver.html to a website that can be accessed from your Chromecast. Later, when you publish your application, you will need to host so that it is accessible using HTTPS.
  • Register an application on the Developers Console (http://cast.google.com/publish). Enter the URL for your receiver application. There is a button marked publish, if you set that, then your receiver can be accessed by all devices, but it requires that you be serving using https. Not publishing your app, lets you restrict the receiver to devices that you specify and allows you to host on most development servers.
  • If you haven't already done so, please register the serial # of your Chromecast device in the developer console as well.
  • Using the Chromecast setup application, make sure [x] send your serial number to Google is checked. This is the only way that you can access your unpublished receiver. While your in the Setup application, make a note of the IP address of your Chromecast. It will be helpful later if you wish to use the Chrome Remote Debugger.
  • 15 minutes after you have updated the developers console, you should reboot your Chromecast, so that it picks up the changes.
  • Enter the App ID of your receiver application into your sender application or one of our sample sender applications, such as DemoCastPlayer.
  • You should now be able to launch your receiver using a sender.
  • If you wish to watch whats going on, using a Chrome browser, connect to <IP of your Chromecast>:9222 and debug your receiver. A good place to start is looking at the console log.
  • The Media Player Library uses XMLHTTPRequest to load all assets (Manifests, sub-manifests, segments, crypto keys, etc. This means that these are subject to CORS rules. You asset server(s) will need to server CORS headers that enable access to all versions of your receiver. (development, staging, and production)

References and How to report bugs

How to make contributions?

Please read and follow the steps in the CONTRIBUTING.md

License

See LICENSE

Google+

Google Cast Developers Community on Google+ http://goo.gl/TPLDxj

cast-media-player-library-sample's People

Contributors

lesv avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.