In the Plugins section , leave the Name property blank, so that you can initialize the plugin within the code. Remember to add the id attribute to the video tag in the player embed code. Wait for the video to begin loading by listening for the loadedmetadata event. This ensures that the video metadata, like the account id, name and tag values will be available in the mediainfo object.
Using the information from the video currently loaded in the player, create a CMS API search request for videos in the same account. The search will look for videos which have the same value as the first tag in the current video. It will exclude any video with the same name as the current video, and it will limit the number of videos returned to 9.
That is how many will fit in our overlay layout. Parse the returned data into JSON format. If an error occurs, display an error message.
If there is an error with a stream, the player will not failover to the next provider. In the example below, the player will attempt to play myVideo. In the event that a browser cannot play an m3u8, the player is intelligent enough to choose myVideo. In the event that an mp4 cannot be played, the player will attempt the webm format before producing an error.
When using DRM, we highly suggest placing the drm block inside of the appropriate media source.
Related Videos for JW Player
This ensures the correct media and DRM pair gets chosen for the appropriate browser. This is not available in Safari browsers where HLS is played natively. In the event that a streaming technology like HLS or DASH cannot be used, listing video files of different qualities will enable a quality selection settings menu in the player. Compared to other streaming methods, it has the following drawbacks:. Tracks can be attached to media for three possible reasons: When using the playlist to load an RSS feed, these options are set in the feed.
The playlist[ index ]. Each adbreak should be given a unique name, and needs to be nested inside of an adschedule block. See our Advertising section for more articles and examples. Playlist configuration options described above can be used with spherical videos. Below are specific options.
JW8 comes with 11 new skin configuration options out of the box. Color can be specified as a hex value , RGBA color value , or color name. JW8 continues to support the three color customization options from 7. The table below shows how the three JW7 customization options map to the new JW8 options. You can use both JW7 and JW8 options in an 8 player, with the more specific JW8 configurations overriding JW7 ones when both apply to the same element.
Setting an empty "ga": No additional nested config options are required. See Connecting Google Analytics for more information. See Display Related Videos for more information. This options block configures the video advertising capabilities of JW Player and overrides advertising settings configured in the dashboard. If no schedule is specified, the ad will play as a preroll by default. Use this option to load an entire advertising schedule to JW Player, containing multiple ad breaks. This schedule will then be applied to each playlist item. For scheduling ads for individual playlist items, see scheduling ads for playlist items.
The VMAP schedule will then be applied to each playlist item. See our article about VMAP schedules for more information. In order to use a JSON-formatted schedule, you'll need at least one ad break configured inside of an advertising block. Each ad break is required to have a unique name, and should include a tag and offset. Use this option to try video player bidding with supported bidders. Click here for more information on how to get started. In order for JW Player to work as mediation layer, the following options need to be set in settings , and bidders needs to have at least one supported bidder.
Use this option to control how frequently ads play back. See our Ad Rules Reference support article for more information. This is a configuration block object with 3 properties: See Companion Ads for more info. We highly suggest updating any configurations to use this new method. For more information regarding DRM, and for examples, please view our support article. Widevine will also function on Firefox browsers for desktop systems.
Adding customized HTTP header data to license requests is possible with the "headers" configuration. This replaces the static "customData" configuration option in both widevine and playready scenarios. It is also possible to add multiple custom http headers by including multiple objects in the "headers" array.
JW Player includes configuration options for custom Fairplay integrations. For more information and examples regarding custom Fairplay DRM integrations, please view our support article. A basic form of DRM that lists a decryption key inside of your player configuration. This is the least secure form of DRM, though it is the simplest to implement across browsers.
There are no additional server resources required to decrypt content with this method. Clearkey is supported in both Chrome and Firefox browsers. Using the localization block in a player configuration allows you to configure text used in the player's user interface for titles, descriptions, ARIA labels and tool tips. The available options are below. This page has been updated for JW Player 8. Click here to go to the JW7 Configuration Reference. Certain JW Player features may require a specific license.
Please contact our team if your license does not support the features or configuration options you need. The default preload configuration has been updated to "metadata", and the metadata and auto settings have been redefined. Video ad insertion requires a JW Player Enterprise license. Please contact our team to upgrade your account. They will not work at the global level using "file. When setting caption styles, color must be specified as a hex value. We highly recommend using low-resolution images for logos in the player, as Internet Explorer may not resize an image, especially if it is high-resolution.
Video content protection requires a JW Player Enterprise license. Previous Page Next Page. Required URL to a single video file, audio file, or live stream to play. Can also be configured inside of a sources array. Defining the video file type is required when using a media file url that does not have an extension.
Related Videos for JW Player
Whether the player will attempt to begin playback automatically when a page is loaded. Configures when the Next Up card displays during playback. A positive value is an offset from the start of the video. A negative number is an offset from the end of the video.
- Configuration Reference - JW Player Developer Guide.
- Skid Out (Heavy Influence);
- Brightcove Player Sample: Related Videos via Tags (CMS API) | Brightcove Learning.
- Main navigation.
- Embed a YouTube player.
- YouTube Embedded Players and Player Parameters.
Whether to display a settings menu to adjust playback speed. If true, the pre-defined options available in the menu are 0. An array can be passed to customize the menu options using playbackRates. This feature is not currently supported in Android with HLS streams. Sets an initial bandwidth estimate, in bits per second, for all viewers.
All values, including negative ones, below the minimum of 1 will be rounded up. To set the highest quality as an initial estimate, reference the highest bitrate from your manifest. Maintains proportions when width is a percentage. Will not be used if the player is a static size. Must be entered in ratio "x: The desired height of your video player In pixels. Can be omitted when aspectratio is configured. Resize images and video to fit player dimensions. See graphic below for examples "uniform" — Fits JW Player dimensions while maintaining aspect ratio "exactfit": By default, the JW Player will set video quality levels using information from the manifest files.
Tells the player if content should be loaded prior to playback. Useful for faster playback speed or if certain metadata should be loaded prior to playback: Recommended if you are concerned about excess content usage. Configure how a stalled live manifest is handled. Accepts a positive number in seconds, but values between are ignored. Set to 0 to configure a stream to never time out. The player will continue requesting manifests until it times out.
If a live manifest does not update after being requested for longer than liveTimeout, the stream will end with an error event. If you want a stream to end immediately, include an end tag in the manifest. This configuration option only handles stalled manifests, not issues with segment loading. A chunk that results in a , for example, will still error out. Required If no file is specified in your setup or sources, this is a required configuration option.
Title of the item. This is displayed inside of the player prior to playback, as well as in the visual playlist. This can be hidden with the displaytitle option. Short description of the item.
List of Grand Slam related tennis records
It is displayed below the title. This can be hidden with the displaydescription option.
Time in seconds to start a media item. When used with an MP4 video file, both seek and seeked events are triggered. Set to 0 to always display DVR mode. Include captions , chapters , and thumbnails for media. Label of the media source, displayed in the manual quality selection menu. Set this if you have more than 2 qualities of your video. Forces a media type. Only required when a file extension is missing or not recognized Using.
Set this to true for the media source you want to play on startup. If this isn't set for any source, the first one is used.