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

HLS and HTML 5 iframe tag


I use chrome ver 55.0 (64 bits). My code is below, that get error "Flash plugin failed to load" -

<iframe sandbox="allow-scripts allow-same-origin" srcdoc='
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
</head>

<body>
<script type="text/javascript" src="http://s.xem.mkocdn.com/bundles/mkoxem/jwplayer/jw7/jwplayer.js"></script>
<div class="video">
<div style="position:relative">
<div id="video-hls"> </div>
</div>
<script type="text/javascript">
jwplayer("video-hls").setup({
width: "100%",
height : "400px",
androidhls:true,
playlist: [
{
file :"http://vxemsbvod.c9238db0.viettel-cdn.vn/663a63a9144d14d12c4c877038956f511487868369/v.xem.sb/data/video/contents/2017/02/22/037/1487754287_4CDA62C166D445BE27FB226894138543.mp4/playlist.m3u8",
image: "http://i.xem.mkocdn.com/i.xem.sb/data/video/thumbnails/2017/02/22/037/thumbnail-1487754287_4CDA62C166D445BE27FB226894138543.png",
aspectratio: "16:9",
autostart: "true",
stretching: "fill"
}]
});
</script>
</div>
</body>
</html>'>
</iframe>

3 Community Answers

Donni

JW Player Support Agent  
0 rated :

I see you have a free account. Do you have a Premium Subscription with another e-mail address? A Premium Subscription is required for HLS playback.

s...

User  
0 rated :

Yep, This is my testing situation, I got jwplayer.js from my friend's website. It's work on my html page (like code below). But not work when using within iframe. I just considered that.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script type="text/javascript" src="http://s.xem.mkocdn.com/bundles/mkoxem/js/jquery-1.7.min.js"></script>
</head>
<body>

<div class="video">
<div style="position:relative">
<div id="video-hls"> </div>
</div>
<script src="http://s.xem.mkocdn.com/bundles/mkoxem/jwplayer/jw7/jwplayer.js"></script>
<script type="text/javascript">
jwplayer("video-hls").setup({
width: "100%",
height : "400px",
androidhls:true,
playlist: [
{
file :'http://vxemsbvod.c9238db0.viettel-cdn.vn/2d5ea91f7b6572b1e6f910179a80cced1487973174/v.xem.sb/data/video/contents/2017/02/19/012/1487522062_D7E39BAA6EACF0E42D92386D2AFB256C.mp4/playlist.m3u8',
type: 'hls',
image: "http://i.xem.mkocdn.com/i.xem.sb/data/video/thumbnails/2017/02/19/003/thumb-1487521253_bao2.jpg"
}]
});
</script>
</div>
</body>
</html>

Donni

JW Player Support Agent  
0 rated :

That player script appears to be modified. Please replace the one you are referencing with a cloud-hosted player associated with a Premium Subscription or follow the self-hosted player directions.

This question has received the maximum number of answers.