JSON Configuration Object

Prev Next

Below is an example of a player configuration object with all the modules of the SDK.

Do not use this example "as is" in your HTML page. This example contains all of the SDK modules. Define only the modules you need in your player.


/** TD Web player configuration object used to create player instance **/

 var tdPlayerConfig = {
     coreModules:[
        {
                 id: 'MediaPlayer',
                 playerId: 'td_container',
                 plugins: [ {id:"vastAd"} ]
         },
         { id: 'NowPlayingApi' },
         { id: 'SyncBanners', elements:[{id:'td_synced_bigbox', width:300, height:250}, {id:'td_synced_leaderboard', width:728, height:90}] },
         { id: 'TargetSpot' }
     ]
 };