Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Managing Embedded Media in Comments

raylivefyre edited this page · 2 revisions
Clone this wiki locally

By default, all media attachments can be embedded into comments. For a comprehensive list of supported providers, check out

You can prevent certain attachments from being embedded into comments. The example below hides YouTube and Vimeo embeds from your comment stream:

var attachmentDelegate = function(embedObj) {
    var providersToBlock = ['youtube', 'vimeo'];
    for (var i=0, len=providersToBlock.length; i<len; i++) {
        if (embedObj.url.indexOf(providersToBlock[i]) > -1) {
            return False;
    return True;

When loading the conversation:

fyre.conv.load({attachmentDelegate: attachmentDelegate}, appConfig);
Something went wrong with that request. Please try again.