Skip to content

mikeRead/videoview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video View Plugin

opens a videoView in android and plays any android supported video

Install

phonegap create videoview
cd videoview
phonegap plugin add https://github.com/mikeRead/videoview.git

Read "Important!" below VVV

IMPORTANT!

In most cases,after installing this plugin, you will need to edit line 24 of platforms/android/src/org/ihopkc/videoplayer/play.java ( https://github.com/mikeRead/videoview/blob/master/src/android/play.java )

Find (on line 24)

import com.phonegap.helloworld.R;

and replace with your own project name space

for example, if you ran

phonegap create name com.example.project_name_space "CordovaProjectName"

you will need to replace (on line 24)

import com.phonegap.helloworld.R;

with

import com.example.project_names_space.R;

then you can run

phonegap build android

successfully

Usage

To open the video in android's video view run this javascript function

 window.play('http://link/to/android/supported/video.mp4');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published