Reputation: 102
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
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