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

How to prevent unused player assets being requested


Hi,

I am using a player that utilises a skin containing *one control*, the central play button overlay.

Looking in the console I am noticing there are a significant amount of HTTP requests related to assets for the JW player. It appears that regardless of me defining a single control all the player controls assets are still downloaded.

Please could you advise on how to ensure that only the minimum assets required are requested by the JW player?

Cheers,

Simon

5 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link to where you are trying to run this?

JW Player

User  
0 rated :

Sure thing, to highlight the extent of the problem we have set controls to false so no chrome what so ever and it's still loading all the assets. The exact same behaviour occurs if we use a custom skin and remove controls: http://cdn.kinura.com/jw6/skin.html



Ethan Feldman

JW Player Support Agent  
0 rated :

You need to use onDisplayClick and then set the player to play.

Or you can make a custom skin with assets removed – http://www.longtailvideo.com/support/jw-player/28847/building-jw-player-skins, http://www.longtailvideo.com/support/jw-player/28849/skin-xml-reference

JW Player

User  
0 rated :

Thanks Ethan,

Yup, aware of onDisplayClick but this player was just to highlight asset loading.

Here is a link to a player skin http://cdn.kinura.com/jw6/vapor.xml for this demo player http://cdn.kinura.com/jw6/skin1.html. As you can see we only declared a display component with 12 png resources. Load the player and look in the network console and you will see JW still downloads all of the default assets (Chrome console logs this to be 148 of the 153 requests!).

Are we missing something here in the skin to ensure these assets are not loaded?

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, I see the controlbar assets still being loaded. Can you update to 6.8? – http://account.longtailvideo.com/

This question has received the maximum number of answers.