I have live event on YouTube and I'd like to broadcast it on my website. I want to make my event private, grab it's RTMP broadcasting URL and paste it on my website, in JWPlayer.
Is that possible?
Providing YouTube live URL to JWPlayer is not working. Already tried.
This should work for YouTube live with JW Player 6.12. Keep in mind the YouTube URL needs to be actually broadcasting for this to work:
<!DOCTYPE html>
<html>
<head>
<title>Live YouTube</title>
</head>
<body>
<script src="http://p.jwpcdn.com/6/12/jwplayer.js" type="text/javascript"></script>
<div id="player"></div>
<script type="text/javascript" language="javascript">
jwplayer("player").setup({
file: "//www.youtube.com/watch?v=U3dnUonOGOs",
primary: 'flash'
});
jwplayer().onPlay(function () {
VideoLength = jwplayer().getDuration() * 1000;
jwplayer().seek(jwplayer().getDuration());
jwplayer().getPosition() * 1000;
});
jwplayer().onPause(function () {
jwplayer().getPosition() * 1000;
});
jwplayer().onBuffer(function () {
jwplayer().getPosition() * 1000;
});
jwplayer().onComplete(function () {
jwplayer().getPosition() * 1000;
});
</script>
</body>
</html>