
Multiple different JWPlayer on one page
I try to add 2 Players on one Page. Each of the player should have a seperate Cloud Player Library URL.
It looks like:
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://content.jwplatform.com/libraries/XXXXXXX.js"></script>
<script src="https://content.jwplatform.com/libraries/YYYYYYY.js"></script>
<script>
$(function(){
jwplayer("player1").setup({
image: 'myimage1.jpg',
title: 'Video 1',
file: "video1.mp4"
});
jwplayer("player2").setup({
image: 'myimage2.jpg',
title: 'Video 2',
file: "video2.mp4"
});
});
</script>
</head>
<body>
<h3>Player 1</h3>
<div id="player1"></div>
<h3>Player 2</h3>
<div id="player2"></div>
</body>
</html>
Both players uses the same library.
Is it possible to tell each player which library it should use?