Search code examples
fullscreenjwplayer

How can i disable full screen button on JW Player 6?


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.


UPDATE

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.


LAST UPDATE

OK. For hide the fullscreen button with the skin. You should assemble all controlbar, Omitting buttonfullscreen options


Solution

  • 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!