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. :(