How to hide JWPlayer 6 play button?
Asked Answered
M

2

1

I was using JWPlayer 5, but right now moving to JWPlayer 6.

<script>
    jwplayer('myElement2').setup({
        file: 'intro.mp4',
        image: 'intro.png',
        skin: 'stormtrooper',
        icons: 'false' // this doesn't work on JWPlayer 6
    });
    jwplayer('myElement2').getPlugin("display").hide();
</script>

On JWPlayer 5 it was icons: 'false' and there were no play button.

Maximilien answered 29/5, 2015 at 19:15 Comment(0)
B
2

The best way to do that would be to create your own skin, and leave that element out of the definition. But I think you can also do a little brute-force CSS:

<style>
.jwdisplayIcon {
    display: none !important;
}
</style>

Clicking the video frame will still start the playback.

Biphenyl answered 29/5, 2015 at 21:1 Comment(0)
M
1

If you are using Flash you need to make a custom skin to do this.

http://support.jwplayer.com/customer/portal/articles/1412123-building-jw-player-skins

If you are using HTML5, the answer above will suffice.

Moulden answered 29/5, 2015 at 21:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.