Git Product home page Git Product logo

cdn's Introduction

Video.js CDN - vjs.zencdn.net

Sponsored by Fastly!

The Video.js CDN hosts updated copies of the various files needed for the player.

See videojs.com for more info on using those files. The following instructions are for CDN admins.

Overview

The CDN hosts copies of Video.js and its hosted dependencies.

  • video.js - /version/video.js (includes most of dist)
  • videojs-swf - /swf/version/video-js.swf
  • videojs-font - /font/version/*
  • videojs-ie8 - /ie8/version/*

For Video.js we also provide auto-updating major and minor versions.

NOTE: Only use the /5/video.js copy for testing. Do not use in production because the base CSS will change and other issues may occur. Similar to jquery-latest.

# Gets every patch and minor release for Video.js version 5
vjs.zencdn.net/5/video.js

# Gets every patch release for 5.[x]
vjs.zencdn.net/5.[x]/video.js

Updating and publishing modules

First update the specific module you want to publish a new version of.

npm install video.js
npm install videojs-swf
npm install videojs-font
npm install videojs-ie8

# You can also install specific versions to be published
npm install [email protected]

Then run the grunt task to publish that module

# vjs.zencdn.net/5.x.x/video.js
grunt publish:videojs

# vjs.zencdn.net/swf/4.x.x/video-js.swf
grunt publish:swf

# vjs.zencdn.net/font/1.x.x/VideoJS.ttf
grunt publish:font

# vjs.zencdn.net/ie8/1.x.x/videojs-ie8.js
grunt publish:ie8

If this is the latest non-prerelease version of Video.js, also run the grunt publish:videojs:latest command

# Update the major (/5-unsafe/) and minor (/5.x/) CDN copies with the latest version
# Also puts the package.json at the root of the CDN
grunt publish:videojs:latest

You can also update the major and minor url versions manually.

  • Minor versions should get all patch releases (except prereleases)
  • Major versions should get all minor and patch releases (except prereleases)
  • Patch releases should never change, including hosted dependencies
# vjs.zencdn.net/5/video.js
grunt publish:videojs:major

# vjs.zencdn.net/5.x/video.js
grunt publish:videojs:minor

# vjs.zencdn.net/5.x.x/video.js
# Same as leaving off the release type
grunt publish:videojs:patch

Setup

The following envirnoment variables are expected by the tasks. Add them to your bash_profile and replace the values with ones you get from another CDN admin.

NEVER ADD THESE TO ANY FILES IN THE REPO

export VJS_S3_KEY='AWS KEY'
export VJS_S3_SECRET='AWS SECRET'
export VJS_S3_BUCKET='AWS S3 BUCKET NAME'
export VJS_S3_ACCESS='public-read'
export VJS_FASTLY_API_KEY='FASTLY API KEY'

cdn's People

Contributors

heff avatar gkatsev avatar mmcc avatar brantem avatar vitaliytv avatar mister-ben 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.