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 ...

    Jun 12, 2015 02:32PM EDT
  •   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 ...

    Jun 12, 2015 06:13PM EDT
  •   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....

    Jun 15, 2015 01:55PM EDT
  •   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: "

    Jun 15, 2015 02:11PM EDT
  •   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{ disp...

    Jun 15, 2015 02:24PM EDT
  •   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...

    Jun 15, 2015 02:45PM 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...

    Jun 15, 2015 02:54PM EDT
  •   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")....

    Jun 15, 2015 03:09PM EDT
  •   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: "

    Feb 05, 2014 06:16PM EST
  •   Example: A Custom Error Message

    For users wishing to stream live content at certain times, there may be periods where there is no stream for the player to connect to. In cases such as these, we will display an appropriate error message. Howev...

    Jun 15, 2015 05:35PM EDT

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