How to prevent unused player assets being requested

JW Player — Apr 17, 2014 12:16PM EDT

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

User

Apr 17, 2014 12:16PM EDT0rated :

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

Apr 17, 2014 12:16PM EDT0rated :

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

Apr 17, 2014 12:16PM EDT0rated :

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?