Reputation: 301
I tried the following code:
<script type='text/javascript'>
jwplayer('video').setup({
height: 267,
width: 475,
autostart: true,
enableFullscreen: 'false',
playlist: [{
sources: [
{ file: "1.mp4" },
{ file: "1.flv" },
{ file: "2.webm" }
]
}]
});
</script>
But not working enableFullscreen: 'false'
. What is the way to do that?
Sorry for my english.
I create my custom skin, but i can't hide the fullscreen button on JW Player.
<skin version="2.0" name="user92" author="user92" target="6.0">
<components>
<component name="controlbar">
<elements>
<element name="fullscreenButton" value="false" />
</elements>
</component>
</components>
</skin>
I have error on loading skin. What is the param that i have to set for hide only fullscreenbutton?. No all controlbar.
OK. For hide the fullscreen button with the skin. You should assemble all controlbar, Omitting buttonfullscreen options
Upvotes: 1
Views: 9193
Reputation: 21
Hide full screen button in JWPlayer 7: $('.jw-icon-fullscreen').hide();
Upvotes: 2
Reputation: 11
You can just hide it by changing the fullscreen button's z-index.
jwplayer('video').setup({
height: 267,
width: 475,
autostart: true,
enableFullscreen: 'false',
playlist: [{
sources: [
{ file: "1.mp4" },
{ file: "1.flv" },
{ file: "2.webm" }
]
}]
}).onReady(function () {
$(".jwfullscreen").css("z-index", "-1");
});
Upvotes: 1
Reputation: 4201
In JW Player 6, removing the fullscreen button can be done via our skinning model:
http://www.longtailvideo.com/support/jw-player/28847/building-jw-player-skins http://www.longtailvideo.com/support/jw-player/28849/skin-xml-reference
The SDK is available here - http://developer.longtailvideo.com/trac/
Basically, in the skin XML file, there is a section for the fullscreen/normalscreen button on the controlbar, which you can remove / comment out.
This section can be removed / commented out:
<element name="fullscreenButton" src="fullscreenButton.png" />
<element name="fullscreenButtonOver" src="fullscreenButtonOver.png" />
<element name="normalscreenButton" src="normalscreenButton.png" />
<element name="normalscreenButtonOver" src="normalscreenButtonOver.png" />
Hope that helps!
Upvotes: 4