Yadhu Krishnan
Yadhu Krishnan

Reputation: 102

Ionic android application - JWplayer not working in specific devices

My Ionic android application stream videos from Wowza server with advertisement.Its working perfectly fine when testing in browser using

ionic serve

also working fine after building apk file and installed in mobile devices.

The problem occurs in some specific devices like samsung galaxy s6 and Note4.

JWplayer play button is not working on these devices.

But video thumbnails are showing correctly on these devices,but only problem is with play button.

$scope.paramData=$stateParams;
jwplayer('playerMDnYyJnMcAHv').setup({
  flashplayer:"js/jwplayer.flash.swf",
  file:  $stateParams.playlistUrl,
  image: $stateParams.poster,
  width: '100%',
  aspectratio: '16:9',
  androidhls: 'true',
  stretching: "exactfit",
  skin: "bekle",
  advertising: {
         client: 'vast',
         tag   : $stateParams.vast,
          },
           cast:{
              appid:"724D0CE5565",
              } 
         });

Could anyone help me to solve this issue .?

Upvotes: 1

Views: 1327

Answers (1)

Mudasser Ajaz
Mudasser Ajaz

Reputation: 6257

JWplayer is having issues with webview of s6 and Note4. So instead of trying other things, install crosswalk plugin to your project, then build .apk file. Behaviour of JWplayer will become stable on all devices. Command to install ionic plugin add cordova-plugin-crosswalk-webview or if you are running older version of cordova then ionic plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git

Upvotes: 2

Related Questions