Git Product home page Git Product logo

whitewater-mobile-video's Introduction

⚠️ IMPORTANT UPDATE ⚠️

This project (and the corresponding encoder) are no longer maintained.

This was an enormously fun project to create, but I never had adequate time for updates and it was made almost immediately obsolete by the adoption of auto-play HTML5 video in most mobile web browsers soon after it's initial release.

Whitewater Mobile Video

A new encoding system for playing inline videos on the mobile web.

  1. Whitewater Player

    A Javascript library for playing videos prepared by encoder (standard video files will not work). It offer a flexible API with playback methods, data about the current video and events.

  2. Whitewater Encoder

    A command line tool and Python module that encodes videos into a bundle of files that can be read by the player to recrate video in an HTML <canvas> tag.

    View on GitHub

Features and Limitations

😀

  • Can play, pause and stop video on mobile
  • Can slow down video
  • Can expose DOM events for developer use
  • Can encode videos with various compression settings
  • Can be used as a Python module in your own programs

😞

  • Cannot seek to arbitrary points within a video
  • Cannot play in reverse
  • Cannot play audio

Quick Start

Manual Download

  1. Download the latest build
  2. Unpack whitewater.zip it and copy whitewater.min.js into your project files
  3. Include whitewater.min.js at the end of your <body>: <script src="path/to/whitewater.min.js"></script>
  4. Initialize an instance of Whitewater().

Note: To play videos, they must first be encoded with Whitewater Encoder.

Initializing Videos

var video = new Whitewater(canvas, source [, options]);

Example

<canvas id="video"></canvas>

<script>
    var canvas = document.getElementById('video');
    var source = 'path/to/video/';
    var options = {
        autoplay: true,
        loop: true,
        controls: true
    }
    var video = new Whitewater(canvas, source, options);
</script>

→ Initialization options and usage details can be found in the Player Documentation.

whitewater-mobile-video's People

Contributors

samiare 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.