Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cortex-media/MediaViewer

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediaViewer

Media Viewer Plugin for Cordova Android.

This plugin opens media files like videos or PDFs with the installed native apps on an Android phone via Intents.

This plugin borrows the general idea and some code from https://github.com/dawsonloudon/VideoPlayer

Usages

MediaViewer.view("file:///android_asset/www/videos/video.mp4", "video/*"); MediaViewer.view("file:///android_asset/www/pdf/document.pdf", "application/pdf");

The examples assume that the files sit in the asset folder, which is probably the default for many phonegap apps. But other locations work as well.

The second argument is the mime-type used by the native Android intent.

About

A PhoneGap plugin for Android intents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.