# VideoPlayer plugin from ionic native is not working

**URL:** <https://forum.ionicframework.com/t/videoplayer-plugin-from-ionic-native-is-not-working/73973>\
**Category:** ionic-v3\
**Created:** [December 21, 2016, 10:22am UTC](https://forum.ionicframework.com/t/videoplayer-plugin-from-ionic-native-is-not-working/73973 "2016-12-21T10:22:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitin\_kothwal](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@nitin\_kothwal](https://forum.ionicframework.com/u/nitin_kothwal)\
**Post date:** [December 21, 2016, 10:22am UTC](https://forum.ionicframework.com/t/videoplayer-plugin-from-ionic-native-is-not-working/73973/1 "2016-12-21T10:22:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![avatsaev](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/avatsaev/32/100786_2.png) [@avatsaev](https://forum.ionicframework.com/u/avatsaev)\
**Post date:** [January 3, 2017, 5:19pm UTC](https://forum.ionicframework.com/t/videoplayer-plugin-from-ionic-native-is-not-working/73973/2 "2017-01-03T17:19:52Z")

</div>

same problem, why is this not working, and why isn’t ionic support not responding to this?

---

<div class="post-metadata">

**Author:** ![jguixer](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jguixer/32/104461_2.png) [@jguixer](https://forum.ionicframework.com/u/jguixer)\
**Post date:** [January 10, 2017, 5:15pm UTC](https://forum.ionicframework.com/t/videoplayer-plugin-from-ionic-native-is-not-working/73973/3 "2017-01-10T17:15:30Z")

</div>

Well, we may better create an issue on the ionic native project on github. I did so:

> <https://github.com/ionic-team/ionic-native/issues/959>

---

<div class="post-metadata">

**Author:** ![avatsaev](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/avatsaev/32/100786_2.png) [@avatsaev](https://forum.ionicframework.com/u/avatsaev)\
**Post date:** [January 10, 2017, 9:13pm UTC](https://forum.ionicframework.com/t/videoplayer-plugin-from-ionic-native-is-not-working/73973/4 "2017-01-10T21:13:43Z")

</div>

If you’re still having problems, i used this plugin instead, [https://ionicframework.com/docs/v2/native/streamingmedia/](https://ionicframework.com/docs/v2/native/streamingmedia/)

If you point to a media (fileEntry.toURL()) on the file system it works.

---

<div class="post-metadata">

**Author:** ![tonyawad88](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tonyawad88/32/110226_2.png) [@tonyawad88](https://forum.ionicframework.com/u/tonyawad88)\
**Post date:** [January 5, 2018, 5:37am UTC](https://forum.ionicframework.com/t/videoplayer-plugin-from-ionic-native-is-not-working/73973/5 "2018-01-05T05:37:17Z")

</div>

The streamingmedia plugin api does not have a way to close / stop the video while it’s playing. Any idea if there’s another plugin that allows you to play and stop the video before it ends?

Thank you!
