Need help with adding Longtail in-video ads

edited June 2012 in General
Hi everyone - First let me say how pleased we are with the way CC is working for us. So far with about 500 hits per day it has proved stable and fast.
We have been testing a new site (www.carpixtube.com) and would like to take it to the next level by including Longtail ads (they are a kind of closed caption thing).They have provided us with the following for the jw player:-




jwplayer('jwplayer1').setup({
'id': 'player',
'width': '400',
'height': '320',
'flashplayer': 'http://www.carpixtube.com/Embed/player.swf',
'file': 'http://www.carpixtube.com/Embed/video.flv',
'plugins': {
'ltas': {
'cc': 'xrdfomnhsinihkd'
}
}
});


Anyone know how we can insert this into the CC version of the JW player???
Please be patient with us - We are car guys NOT internet gurus.

Comments

  • edited May 2012
    You pretty much have it. Assuming you haven't made any changes to your player, simply add the following in the file:

    /cc-content/themes/{YOUR_THEME}/play.tpl

    Look for the player section that looks like this ('...' are paraphrased lines):

    <!-- BEGIN VIDEO -->
    ...
    jwplayer("player").setup({
    ...
    height : 450
    });
    ...
    <!-- END VIDEO -->

    and add this:

    plugins: {
    ltas: {
    cc: 'xrdfomnhsinihkd'
    }
    }

    So the code would look like this:

    <!-- BEGIN VIDEO -->
    ...
    jwplayer("player").setup({
    ...
    height : 450,
    plugins: {
    ltas: {
    cc: 'xrdfomnhsinihkd'
    }
    }
    });
    ...
    <!-- END VIDEO -->

    And save the file.

    Things to note:

    1) The player will call to JwPlayer's servers to load the plugin files, if you have not paid for the plugin then obviously it will not load.
    2) '...' are paraphrased lines
This discussion has been closed.