
Related videos on jwplayer 7.6.x not workingany more
I've created a wordpress function to get jwplayer 7 related videos using wordpress and it was working fine.After the update from 7.4.x to 7.6 I noticed an issue.
When I click to NEXT UP the player stops working and give Error loading playlist: no playable sources found
So, The older versions worked fine because was redirecting to the wordpress permalink but with last version its doing this error.
Let me explain it a bit more
My Player Code:
<script type="text/javascript">
var jw = jwplayer("jwplayer").setup({
file: '<?php echo $video; ?>',
image:"<?php echo $thumb; ?>",
width: "100%",
height: "100%",
aspectratio: "<?php echo $ratio; ?>",
startparam: "start",
autostart: <?php echo $autostart; ?>,
primary: 'html5',
logo: {
file: '<?php echo $logoimage; ?>',
link: '<?php echo $logolink; ?>',
position: "<?php echo $position; ?>",
},
skin : {
url:"<?php echo $sefurL; ?>/inc/tools/jwplayer/skins/<?php echo $skin; ?>.css",
name:"<?php echo $skin; ?>"
},
related: {
file: "<?php bloginfo('url'); ?>/<?php $category = get_the_category($post->ID); echo $category[0]->category_nicename; ?>/?feed=related-feed"
}
});
<?php if (!empty($in_embed_ad)) { ?>
jwplayer('jwplayer').onPlay(
function(event) {
$(".hidePauseAdZone").css("display","none");
}
);
jwplayer("jwplayer").onPause(
function(event) {
return document.getElementsByClassName("hidePauseAdZone")[0].style.display = '<?php echo $adspause; ?>';
}
);
<?php } ?>
</script>
With the player code above the related videos were working fine in version 7.4 as I told itsnot working after jwplayer update.
Do you have any idea about this? Thanks