Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Playing JWplayer in mobile app


Hi,

I am using JWPlayer to play youtube videos in app, i applied skin 'five' , it is getting applied in browser but when i open it in mobile on first load is showing youtube UI and on play video skin is getting applied. Why?
Setup options :
$scope.options = {
file: "YOUTUBE_VIDEO",
aspectratio : '16:9',
skin : 'five',
autostart : false,
controls : true,
primary : 'html5',
repeat : false,
width : '100%',
sharing : {},
flashplayer : 'jwplayer.flash.swf',
html5player : 'jwplayer.html5.min.js',
ga : {}
};
Thanks & Regards,
Snehal

4 Community Answers

George

JW Player Support Agent  
0 rated :

You may want to try self hosting the skin maybe locally on the device and loading it via the application. In general using our JS library in a mobile application is not supported. But I believe the issue is as I described

Snehal

User  
0 rated :

Thanks for reply,

For self hosting where we get css files, so that we can use directly in application?
One more question, When video ends it shows black screen, how to stop JWplayer from turning black at the end of the video?

Regards,
Snehal

Snehal

User  
0 rated :

Actually, I tried custom css

skin : {
url:'css/five.css',
name:'five'
},

But it is giving error - "TypeError: a.skin.replace is not a function"

George

JW Player Support Agent  
0 rated :

Unfortunately this is an unsupported use case.

This question has received the maximum number of answers.