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

(On iOS) Links to open in same video player window


Hi

I am using JWplayer version 6.8 and I used the reference from this article:
http://support.jwplayer.com/customer/portal/articles/1480872-example-creating-an-html-playlist

Problem :
Not working properly on iOS devices.


Links are working fine with local files and also for Youtube links on desktop. But on iOS it is quite problematic

If a local video is first loaded in the player -
Links to open a Youtube video gives an error message :
"Error loading playlist: No playable sources found"

If a Youtube video is first loaded in the player -
Youtube video is playing fine but all the other links, even links to local files, will not react at all upon clicking.

So it just seems like the javascript link isn´t compatible with iOS devices.somehow... I dunno

Can you recreate this problem?



The code

<ul>
<li><a href="javascript:loadVideo('canvas1.mp4','leaves.jpg')">Canvas 1</a></li>
<li><a href="javascript:loadVideo('http://youtu.be/AW07GZ5UzJc','underwater.jpg')">Under water</a></li>
<li><a href="javascript:loadVideo('canvas2.mp4','leaves.jpg')">Canvas 2 1</a></li>
</ul>

<script type="text/javascript">
jwplayer("myElement").setup({
title: "Canvas 1",
description: "Leaves touching water",
image: "",
file: "https://www.youtube.com/watch?v=AW07GZ5UzJc",
width: 800,
height: 330,
});
</script>
<script>
function loadVideo(myFile,myImage) {
jwplayer().load([{
file: myFile,
image: myImage,
}]);
jwplayer().play();
};
</script>

2 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

We do not support mixing YouTube / mp4 content yet on iOS. Currently, we fall back to the default YouTube player.

martin

User  
0 rated :

I am having the same problem but I'm not using an external source - all local.
I have a default video loaded and works fine.
The links below work in Windows but not on iOS.
What is the workaround?

This question has received the maximum number of answers.