If you don't find an answer, please click here to post your question.

Customizing Message for Twitter Share (Player V4)

0 Kudos
Started ‎04-28-2017 by
Modified ‎04-28-2017 by

Customizing Message for Twitter Share (Player V4)

by Community Manager on ‎04-28-2017 09:50 AM (331 Views)

Steps:

1. Download the source code for the HTML skin in "https://github.com/ooyala/html5-skin" and in it, there is a file named "SharePanel.js" which is in "/html5-skin/js/components" directory. This is the one that is used to generate the Twitter, Facebook, etc for sharing.

2. Modify the source code for Twitter here to append any additional information.

handleTwitterClick: function() {
var twitterUrl = "https://twitter.com/intent/tweet";
twitterUrl += "?text=" + encodeURIComponent(this.props.contentTree.title+": ");
twitterUrl += "&url=" + encodeURIComponent(location.href);
window.open(twitterUrl, "twitter window", "height=300,width=750");
},

Note that the customised skin should be hosted at your web server. The player v4 should point to your customized skin.