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

How to remane a custom skin on IOS


Hello,
My question is quite simple I am actually working on a IOS project where I want to implement JWPlayer.
I have manage to implement the player.
I would like now to customise the skin of the player. I have followed the example you provide for IOS and I managed to display the "ethan" skin you provide in your examples.
The next step I took was to create a local css skin in my xcode project and call it. If I put the "ethan" skin in my local css file if works perfectly but If I start to try and change the css it stops working all together.
I figured out that my problem came from the fact that the name of my skin seem to be registered as "ethan" and I have to put ".js-skin-ethan" before all my css class.
I cannot find in the IOS SDK documentation how to change or set the name of my new skin and I cannot figured out why "ethan" is the default name of my new customised skin.

So in the end my question is how can I set the name of my new skin in IOS?

Thank you in advance for any information you could give me.

Martin

5 Community Answers

Daniel Berger

JW Player Support Agent  
0 rated :

Hi Martin,

Thank you for reviewing our iOS SDK. The sample custom skin url in our demo app is simply an example of a url which leads to a custom CSS skin file. You can create your own custom skin, save it to a server (S3 for example) and then implement the skin’s url as we have done.
Please let me know if you have any other questions.

dev

User  
0 rated :

Hello Daniel,

Thank you for the quick response.
I think I was not really clear with my question.
I not having a problem implementing a local skin that works with my project.
My problems comes with the fact that there is no way to name a custom skin on IOS and that your SDK needs a name for the skin to be able to apply it to the player.
There seems to be a default name for the SDK skin that is "jw-skin-ethan". If a use this key in front of all my custom classes it works fine but if I want to change this name there don't seem to be a way on IOS.

Hope I was more clear with my problem this time.

Martin

Daniel Berger

JW Player Support Agent  
0 rated :

Thank you for following up Martin. I believe you are referring to this custom skin file -
http://p.jwpcdn.com/iOS/Skins/ethan.css. That is simply an example of a custom skin that was created by someone named Ethan. You are welcome to create your own css skin, upload it to a hosting platform and then implement the url as a custom skin as we have done with http://p.jwpcdn.com/iOS/Skins/ethan.css.

The easiest way to create a custom skin is to edit one of our existing skins. To access the css files of our premium skins, you can download them along with the self hosted player from your dashboard. Once you have the css file you can edit it with the references that I previously shared with you.

Please let me know if you have any other questions.

dev

User  
0 rated :

Hy Daniel,
It's me again I'm sorry but I'm facing another problem on ios.
When I rotate my device the controlbar of the player doesn't seem to stick to the bottom and ends up on my view.
Is there a way I could overcome this problem.

Thank you in advance for any information

Martin

Daniel Berger

JW Player Support Agent  
0 rated :

Hi Martin,

It is nice to hear from you again. Please examine this project that I created for you: http://qa.jwplayer.com.s3.amazonaws.com/~daniel/JWPlayer-Swift-Medici.zip

In this project I implemented a navigation bar. If you rotate this project you will see that the navigation bar is never hidden regardless of orientation. I also left comments in the code.

Let me know your thoughts.

This question has received the maximum number of answers.