cordova-plugin-hkvideoplayer

ionic Video Player For iOS


Keywords
media, streaming, ecosystem:cordova, cordova-ios, cordova, ionic2, ios, npm, swift3
License
MIT
Install
npm install cordova-plugin-hkvideoplayer@1.0.12

Documentation

HKVideoPlayerPlugin

ionic/cordova Plugin to Play native Video Player (SWIFT)

Installation

cordova plugin add cordova-plugin-add-swift-support //Swift Bridging Hook
cordova plugin add cordova-plugin-hkvideoplayer

iOS specifics

  • Uses the AVPlayer.
  • Tested on iOS 10.X
  • Swift 3

Usage

 	
// Define On Top 
declare var HKVideoPlayer;

// Play Video from Application Directory or Stream Online
HKVideoPlayer.play("full path");

// Play Video from Assets
HKVideoPlayer.playLocal("video.mp4");