GithubHelp home page GithubHelp logo

jordan-carl / html5video Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaeger25/html5video

0.0 2.0 0.0 4.14 MB

A Phonegap plugin that allows playback of local video files using html 5 video tags

html5video's Introduction

Cordova Html5Video Plugin

Description

This plugin allows playback of local video files using embedded html 5 video tags. This repository contains both the plugin files and a sample Android application that uses the plugin. Tested on Android API 15 - 17

Setup

  1. Make sure the tag in AndroidManifest.xml has android:hardwareAccelerated="true"
  2. Add to config.xml
  3. Add the file Html5Video.java from the org.apache.cordova.plugin package to your src folder
  4. Create a folder called raw inside the res folder and put any video files in it. (not poster image files)
  5. Add any poster image files to your www folder
  6. Create any video tags within your html pages as normal, making sure to give each video tag an id. The video tags should be empty, ie no tags inside
  7. Add the Html5Video.js file to your project's js folder and include it in index.html after cordova.js

Usage

After device ready, call window.plugins.html5Video.initialize(videos). See Html5Video.js for parameter info Anytime you wish to play a video, call window.plugins.html5Video.play(videoId, callback). See Html5Video.js for parameter info

html5video's People

Contributors

jaeger25 avatar

Watchers

James Cloos avatar carl 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.