
(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>