Resizing the Player

A demo setup of JW Player with an external link that resizes the player on the fly.

License: All
Player Version:
Author: JW Player | GitHub
This demo includes:
  • getWidth()
  • resize()
<script type="text/javascript">

var player = jwplayer();

function resizePlayer() {
    if (player.getWidth() > 480) {
        player.resize(480, 270);
    } else {
        player.resize(640, 360);
Please Note: This player implementation is a Proof of Concept only provided to show the possibilities of the JW Player and Platform and should not be taken as an offer to create, edit or maintain custom integration or development.