![](https://secure.gravatar.com/avatar/a85f641e3cb1c37f71d834d64b2871ad?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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