Hi,
I need to open a native video player to play the video from local file storage or directly streamed from server. I installed VideoPlayer plugin but it has started complaining in console as follows.
Native: tried calling t.play, but the t plugin is not installed. main.js:181
Install the t plugin: ‘ionic plugin add cordova-plugin-videoplayer’ main.js:186
plugin_not_installed
I have written a code as follows:
import { VideoPlayer } from 'ionic-native';
playVideo(): void {
VideoPlayer.play("http://player.vimeo.com/external/85569724.sd.mp4?s=43df5df0d733011263687d20a47557e4")
.then(() => {
console.log('video completed');
}).catch(err => {
console.log(err);
});
}
Please point me any resources telling any other way to invoke native video player.