JavaScript API

Articles Questions
  •   JavaScript API Quick Start

    This article explains how to use the JavaScript API component of JW Player. This API can be used to enhance the functionality of your video embeds and/or to implement rich video-page interactions. It abstracts ...

    Jan 15, 2015 04:17PM EST
  •   JavaScript API Reference

    This article provides a reference to all the JW Player 6 JavaScript API calls available. For an introduction to using the player API see the JavaScript API Quick Start. Table Of Contents Setup ...

    Nov 13, 2014 02:29PM EST
  •   Example: Adding a Download Button

    This example will show you how to allow users to easily download a video file. This button will be added with our addButton API call. jwplayer("container").setup({ image: "http://content.bitsontherun....

    Feb 05, 2014 03:50PM EST
  •   Example: Autostart Only Once

    Here is an example of a setup of JW Player that autostarts the video - but only for the first time a user visits the page: jwplayer("container").setup({ image: "http://content.bitsontherun.com/thu...

    Feb 05, 2014 01:26PM EST
  •   Example: Resizing the Player

    Here is an example of a basic setup of JW Player, with a link below that resizes it on the fly. This can be used by publishers to build a "lean back" video viewing experience into their site: #container{ d...

    Feb 05, 2014 01:25PM EST
  •   Example: Linking to a Time Offset

    Here is an example of a setup of JW Player, presenting a single RTMP stream. By default, the video starts from the beginning. However, if there's time offset hash in the URL, the video will start from that time...

    Mar 16, 2014 07:26PM EDT
  •   Example: A Chromeless Player

    ​ Here is an example of a setup where the video controls are hidden. However, we are utilizing our own separate controls for playback. Each of these buttons is making calls with our API to control playback ex...

    Jan 15, 2015 04:19PM EST
  •   Example: Loading New Playlists

    Here is an example of a setup that uses the JavaScript API to load new videos into JW Player on the fly: #container{ display:block; margin: 20px auto; box-shadow:0 0 4px #999; } jwplayer("container")....

    Jan 15, 2015 04:11PM EST
  •   Example: A Poster-less Preview

    Here is an example of a setup of JW Player displays a video preview without poster image: #container{ display: block; margin-left: 110px; box-shadow:0 0 4px #999; } jwplayer("container")...

    Feb 05, 2014 06:09PM EST
  •   Example: Mutually Exclusive Playback

    Here is an example of a setup with multiple players. When one of them starts, the others are automatically paused: var options = { file: "http://content.bitsontherun.com/videos/bkaov...

    Feb 05, 2014 06:16PM EST


Can't find what you're looking for? Log In here to ask our community a question.

Still don't have JW Player? Get It Here