Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Use chromecast with videojs html5 player
JavaScript CSS
branch: master
Failed to load latest commit information.
demo fixed demo
dist added video controls, Html5 tech return
libs/video-js-4.2.1 Init repo
node_modules Init repo
src added video controls, Html5 tech return
CONTRIBUTING.md Init repo
Gruntfile.js added new chromecast tech
LICENSE-MIT Init repo
README.md Init repo
package.json Init repo

README.md

videojs-chromeCast

Display a chromecast Button on Control Bar video.js players.

videojs-chromeCast

ChromeCast Api Reference

https://developers.google.com/cast/ (doc) https://developers.google.com/cast/whitelisting (whitelisting)

This plugin was tested on video.js 4.1.0 4.2.0 and 4.2.1.

Getting Started

Download videojs and videojs.ga

Allow your cast by clicking four times in the bottom left corner of the icon cast videojs-chromeCast

In your web page:

<html data-cast-api-enabled="true">
<script src="video.js"></script>
<script src="dist/videojs.chromeCast.min.js"></script>
<link rel="stylesheet" href="dist/videojs.chromeCast.css" type="text/css" />
<video id="video" src="movie.mp4" controls></video>
<script>

    videojs('video', {
        'plugins': {
               'chromecast': {
                    enabled : true,
                    appId : 'your-chromecast-app-id',
                    namespace : 'your-chromecast-namespace',
                    title : 'video title',
                    description : 'video desc'
                    }
               }
        }
    );
</script>

Options

enabled : true,
appId : 'your-chromecast-app-id',
namespace : 'your-namesapace',
title:'',
description:''
Something went wrong with that request. Please try again.