Listy for JW Player

Example: Applying multiple skins

Demonstrates how to apply different skins to the playlist feature bars and the playlist - seperate to the player skin.

Key features

  • By default Listy will use the same skin as defined for the player for the playlist feature bars and the playlist
  • Using the "skin" setting either the playlist feature bars and/or the playlist can be styled independently of the player


CSS

  #player_wrapper{
    width:85%;
    margin-right:auto;
    margin-left:auto;
  }
  #example{
    float:left;
  }
  /* ************************ */
  /* Additional listy styling */
  /* ************************ */
  /* Default breakpoint styles */
  #example, #example.jwfullscreen{
    width:100% !important;
  }
  /* Listy override container */
  #detached_options{
    width:100%;
    float:left;
  }
  /* Listy override - detached playlist */
  #detached_playlist{
    clear:both;
    width:100%;
    float:left;
    max-height:500px;
    overflow:auto;
  }
  /* Description - Limit displayed text */
  #detached_playlist .listy-description{
    height:42px;
    overflow:hidden;
  }
  /* Playlist images - Hide images*/
  #detached_playlist .listy-fill{
    display:none;
  }
  #detached_playlist .listy-textwrapper {
    padding:10px;
  }
  /* Medium breakpoint */
  @media only screen and (min-width: 35em) {
    #player_wrapper{
      width:65%;
    }
    #detached_options .listy-search-wrapper{
      width:50%;
    }
    /* IMAGES */
    #detached_playlist .listy-fill{
      display:block;
    }
    #detached_playlist .listy-textwrapper {
      padding:10px 10px 10px 150px;
    }
  }
  /* Large breakpoint */
  @media only screen and (min-width: 65em) {
    #player_wrapper{
      width:75%;
    }
    #example{
      width:47% !important;
    }
    #detached_options{
      width:47%;
      float:right;
    }
    /* Playlist area */
    #example_listy_list{
      height:500px;
    }
    /* Description */
    #detached_playlist .listy-description{
      height:auto;
      overflow:none;
    }
  }

HTML

  <div id="player_wrapper">
    <div id="example"></div>
    <div id="detached_options"></div>
    <div id="detached_playlist"></div>
  </div>

Setup code

  jwplayer("example").setup({
    "playlist":[{...}],
    "width":"100%",
    "aspectratio":"16:9",
    "plugins": {
      "listy.js":{
        "target":"detached_options",
        "skin":"http://p.jwpcdn.com/6/7/skins/five.xml",
        "list":{
          "label":"My playlist",
          "target":"detached_playlist",
          "skin":"http://p.jwpcdn.com/6/8/skins/stormtrooper.xml"
        },
        "features":{
          "shuffle":{"enabled":true},
          "search":{"enabled":true},
          "edit":{"enabled":true},
          "add":{"enabled":true}
          "add_from_yt":{"enabled":true}
        }
      }
    }
  });
One thing to note is that you should not include the JW "listbar" setting if using the Listy plugin