Skip to content

koa-health/cordova-vr-player

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova VR Player

A simple cordova plugin playing a video in a native Google VR View for Android and iOS. It supports both mono and stereo videos through compatibility with Google Cardboard.

##Usage

####GoogleVRPlayer.playVideo(videoUrl, fallbackVideoUrl)

Opens a view and starts playing video available under videoUrl parameter. The video is played in full screen mode by default. When user exits the full screen mode, the view automatically closes. Some older devices cannot decode video larger than 1080p (1920x1080). In case the video fails to play the plugin will attempt to play the video available under fallbackVideoUrl parameter.

####GoogleVRPlayer.playImage(imageUrl, fallbackImage) Same as above but works for images as well

About

Plugin playing a video in VR View for Android and iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 53.7%
  • Objective-C 40.2%
  • Shell 3.3%
  • JavaScript 2.8%