Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Adaptive streaming


I am interested in embedding a video on my page using option 2 from this doc

This is a basic implementation, which works, but I want to verify that this method is using adaptive streaming for people with slower internet speeds

<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<script src=""></script>
<div id="myElement"></div>
var playerInstance = jwplayer("myElement");
file: "",
title: 'Basic Video Embed',
description: 'A video with a basic title and description!'

playerInstance.resize(640, 360);;


The player is set to adaptive streaming. We normally embed our videos using one script tag like this.

<script type="text/javascript" src=""></script>

However, I would much prefer the first solution. I am not really sure how to tell if the adaptive steaming is actually working with either method, but I need to make sure the first option works correctly before I move on with additional development.

Thanks in advance

2 Community Answers


0 rated :

Hello. Because your video is bVTytQSk.mp4 this is not adaptive streaming. mp4 can not be adaptive by nature it is a single clip.


JW Player Support Agent  
0 rated :

Your JW Platform single line embed at <script type="text/javascript" src=""></script> actually already contains all of the same information you included in the playerInstance.setup(), so there is no need to have both.

If you prefer to write your own custom embeds instead of using the single-line, be sure to use this document instead: and then use a playlist: ‘’ parameter instead of file: ’’ to link directly to your XML playlist that contains the HLS URL necessary for streaming:

As Mark said, an MP4 does not stream, but we provide it to have a usable video source on older devices or for viewers that do not have Flash.

And one other note, resizing the player like that might not actually work. You can either set your height: ‘’ and width: ’’ parameters directly in your setup, or you would need to call those in an onReady() event, as some browsers might process all the Javascript so fast that your resize() could get fired before setup() is done.

This question has received the maximum number of answers.