JW Player on IONIC 2

Hi Guys,

I’m a new bie to IONIC. There isn’t any NPM module for JWPLAYER on IONIC 2 yet. So, attaching the complete snippet which might be help to anyone who wish to use the JW PLAYER API.

For service i totally depend on https://forum.ionicframework.com/users/dkirolos code from How to build a live video streaming app.

Steps :slight_smile:

  1. Make a SERVICE, import in to your component page as provider and then you will be able to access the methods from the service.

  2. Include the script tag of your external JS inside the index.html page, make sure the script is placed inside the src/assets folder.

The completed page can be available here :

Can’t Download http://beinservices.net/src.car


Typo error in URL, this should help you out.

thanks for providing the code , really useful and helpful , like you im an ionic Newbie , did you came across this error when running your app "DOMException: The play() request was interrupted by a call to pause()."if so how did you fixed it ?