Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Facebook and instagram embedding using jwplayer


I am trying to embed facebook and instagram embed using jwplayer, it is not working, but the same code working for youtube.

My Youtube Code:
<div style="width: 30%;">
<div id="myYoutube" class="jwplayer tabindex="0" style="width: 60%; height: 260px;"></div>
</div>
<script type="text/javaScript">
var playerInstance = jwplayer("myYoutube");
playerInstance.setup({
file: "https://www.youtube.com/watch?v=JgY8xehRm80"
});
</script>

My Facebook Code:
<div style="width: 30%;">
<div id="myFacebook" class="jwplayer jw-reset jw-state-idle jw-skin-seven jw-stretch-uniform jw-flag-aspect-mode jw-breakpoint-0 jw-flag-small-player jw-flag-time-slider-above jw-flag-user-inactive" tabindex="0" style="width: 60%; height: 260px;"></div>
</div>
<script type="text/javaScript">
var playerInstance = jwplayer("myFacebook");
playerInstance.setup({
file: "https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2Fvideos%2F10153231379946729%2F&show_text=0&width=560"
});
</script>

Note: the topic should be embedding I can't find it here. :(

1 Community Answers

George

JW Player Support Agent  
0 rated :

We are deprecating YouTube video support:
https://support.jwplayer.com/customer/portal/articles/1406725-youtube-video-embed

You’d have to use a valid video source, either MP4 or HLS are currently the better options.

This question has received the maximum number of answers.