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

Error only in Flash but not Html5: "Skin not a valid file type"


//JW 6 setup media:

jwplayer('myPlayer').setup({
file: 'https://domain.com/media.mp4',
primary: 'flash',
flashplayer: '/asset/jwplayer.flash.swf',
html5player: '/asset/jwplayer.html5.js',
width: '100%',
skin:'/skin/five-custom.xml'
});

I am not sure how to send an attachment, however my xml file simply removes elements I choose not to include. The skin attributes were modified to have the name:

<?xml version="1.0" ?><skin author="JW Player" name="five-custom" target="6.7" version="3.0">


All this works when primary is removed which renders html5. However, when testing to force to use primary:'flash'.
I get the error:

"Error loading skin: Skin not a valid file type"

Why does it work for HTML5 but not in Flash?

8 Community Answers

sparqdevelopment

Best Answer 

We retrieve our skins asset using a handler passing parameters to it.

So the actual setup is:
jwplayer('myPlayer').setup({
file: 'https://domain.com/media.mp4',
primary: 'flash',
flashplayer: '/asset/jwplayer.flash.swf',
html5player: '/asset/jwplayer.html5.js',
width: '100%',
skin:'https://domain.com/GetResource.axd?s=%2Fasset%2Fskins%2F/five-custom.xml'
});

The URL is reachable but fails on your flash code when checking for xml extension via Strings.extension().

It throws the following error:
-- new ErrorEvent(ErrorEvent.error, false, false, "Skin could not be loaded: Skin not a valid file type")

I've resolved this issue.

View in conversation

sparqdevelopment

User  
0 rated :

In addition, when I setup and simply use the following, it renders it correctly in flash and Html5:

skin: "five"

Thanks in advance.

Andrew

JW Player Support Agent  
0 rated :

Hi,

Is it possible to provide a link to where you’re setting this up?

sparqdevelopment

User  
0 rated :

I am unable to provide a link unfortunately. They are not published where it is reachable.

sparqdevelopment

User  
-1 rated :

With the same code base, ...
- Flash renders the following:
http://snag.gy/DPRUO.jpg

- Html5 renders the following:
http://snag.gy/Fr1kL.jpg


sparqdevelopment

User  
0 rated :

Is there any way that someone can contact me and we can discuss this? Deadline is coming upon me.

Thanks in advance.

sparqdevelopment

Best Answer  User  
-2 rated :

We retrieve our skins asset using a handler passing parameters to it.

So the actual setup is:
jwplayer('myPlayer').setup({
file: 'https://domain.com/media.mp4',
primary: 'flash',
flashplayer: '/asset/jwplayer.flash.swf',
html5player: '/asset/jwplayer.html5.js',
width: '100%',
skin:'https://domain.com/GetResource.axd?s=%2Fasset%2Fskins%2F/five-custom.xml'
});

The URL is reachable but fails on your flash code when checking for xml extension via Strings.extension().

It throws the following error:
-- new ErrorEvent(ErrorEvent.error, false, false, "Skin could not be loaded: Skin not a valid file type")

I've resolved this issue.

Jeff Beck

User  
6 rated :

unbelievable geek talk anyone know English not geek talk... can explain how a normal person can fix this

Todd

JW Player Support Agent  
-1 rated :

The forum post is from nine months ago. If you are having trouble with a skin in JW6, my first suggestion would be to try it in JW7, because JW7 uses CSS for skins as opposed to the XML files in JW6.

Please see our CSS skinning documentation on our Developer site at https://developer.jwplayer.com/jw-player/docs/developer-guide/customization/css-skinning/skins_creating/

This question has received the maximum number of answers.