
sharingPlugin / relatedPlugin Undefined
Here is my code on page, which is having issues though the same code works on a small player demo page, so not sure what's happening here:
$(document).delegate('#vr_share', 'click', function(){
$( "#overlay" ).remove();
var sharingPlugin = playerInstance.getPlugin('sharing');
sharingPlugin.open();
frommenu = true;
});
$(document).delegate('#vr_related', 'click', function(){
$( "#overlay" ).remove();
var relatedPlugin = playerInstance.getPlugin('related');
relatedPlugin.open();
frommenu = true;
});
My video is definitely "playerInstance", as I have a number of functions working. I just can't get the plugin info to work. I click the button to enact either plugin and I get:
Error: TypeError: sharingPlugin is undefined
Feedback appreciated.
Cheers
Ryan