
Embedding YouTube live streams
Is it possible to play YouTube live streams using JWPlayer?, because when i added the YouTube live stream URL to the player script it doesn't seem to be able to load.
Is it possible to play YouTube live streams using JWPlayer?, because when i added the YouTube live stream URL to the player script it doesn't seem to be able to load.
I am not sure if this would work. Do you have an example of where you tried this?
@christopherferron
When I embed live streams from Youtube a use the fallowing code:
<script>
jwplayer("ovnPlayer").setup({
file: "https://www.youtube.com/watch?v=ID",
stretching: 'fill', // image cover fix
width: "100%",
aspectratio: "16:9"
});
</script>
<script>
jwplayer("ovnPlayer").onPlay(function() {
jwplayer().seek(999999999); //Jump to live
});
</script>
Hope it helps!
I mean a link.