CDVVideo is a Cordova 1.7+ plugin for iOS that allows playing video (local or remote) via a native video player. It is essentially a port of eiffelqiu's phonegape-videoplayer-plugin.
- Drop the
.hand.mfiles into the CordovaPluginsfolder. Use the default options. - Add an entry to the
Pluginsdictionary inCordova.plist. The key should beCDVVideoand the value must beCDVVideo. - Add the
CDVVideo.jsfile somewhere under yourwwwdirectory and include it in yourindex.htmlfile. - Play a video by calling
CDVVideo.play(video, portrait), wherevideois the URL or filename you wish to play andportraitis a string that is eitherYESorNO, indicating whether portrait or landscape orientation should be used. - Optional: Change or overwrite
CDVVideo.finished(video)to handle when a video finishes playing.videocorresponds to the video that you passed toCDVVideo.play().