JavaScript API

Articles Questions
  •   JavaScript API Quick Start

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

    Nov 20, 2015 06:01PM EST
  •   JavaScript API Reference

    This article provides a reference to all available JW Player JavaScript API calls. API calls below are grouped together in a logical way, while breaking each section into Getters, Setters, Events, and Miscellan...

    Nov 24, 2015 03:16PM 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. var playerInstance = jwplayer("container"); playerInstance.setup...

    Nov 25, 2015 11:07AM 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: var playerInstance = jwplayer("container"); playerInstance.setup({ image...

    Nov 25, 2015 11:07AM 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{ disp...

    Jul 21, 2015 03:22PM 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 is a time offset hash in the URL, the video will start from that t...

    Jul 21, 2015 03:23PM 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 extern...

    Jul 21, 2015 03:25PM EDT
  •   Example: Loading New Playlists

    For this example, we'll be constructing a static playlist via HTML and javascript. Since this is technically not an actual playlist to JW Player (Since we're not using the 'playlist' config option), this can be...

    Jul 21, 2015 03:25PM 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: "

    Jul 21, 2015 03:26PM EDT
  •   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...

    Aug 12, 2015 11:51AM 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