I need assistance on how to correctly utilize this API with the code provided in the following URL:
https://developers.facebook.com/docs/plugins/embedded-video-player/api/#control-reference
https://i.sstatic.net/jQQeN.png
window.fbAsyncInit = function() {
FB.init({
appId : '17xxxxxxxxxx',
xfbml : true,
version : 'v3.5'
});
var ssp_video_player;
var time = jQuery(this).attr("time");
FB.Event.subscribe('xfbml.ready', function(msg) {
if (msg.type === 'video') {
ssp_video_player = msg.instance;
}
ssp_video_player.seek(600);
});
};
Upon loading the page, the video skip/seek functionality works, but once fully loaded, I am unable to control the player using variables like the one below:
ssp_video_player.play(); or
ssp_video_player.pause(); etc.
Is there another method that would allow me to control the Facebook video player?