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

Adaptive streaming


Hello,

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

http://support.jwplayer.com/customer/portal/articles/1406723-basic-video-embed

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">
<head>
<meta charset="UTF-8">
<title></title>
<script src="http://video.responsivedata.com/libraries/RkYbzvme.js"></script>
</head>
<body>
<div id="myElement"></div>
<script>
var playerInstance = jwplayer("myElement");
playerInstance.setup({
file: "http://video.responsivedata.com/videos/bVTytQSk.mp4",
title: 'Basic Video Embed',
description: 'A video with a basic title and description!'
});

playerInstance.resize(640, 360);
playerInstance.play();

</script>
</body>
</html>

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

<script type="text/javascript" src="http://video.responsivedata.com/players/bVTytQSk-RkYbzvme.js"></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

mark

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

Todd

JW Player Support Agent  
0 rated :

Your JW Platform single line embed at <script type="text/javascript" src="http://video.responsivedata.com/players/bVTytQSk-RkYbzvme.js"></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: http://support.jwplayer.com/customer/portal/articles/1891931 and then use a playlist: ‘’ parameter instead of file: ’’ to link directly to your XML playlist that contains the HLS URL necessary for streaming: http://video.responsivedata.com/jw6/bVTytQSk.xml

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.