Example 1 - Using OVA with the BWCheck Plugin

The configuration for this example is:


flowplayer("a.example", "", {
    clip: {  
       urlResolvers: 'bwcheck',
       provider: 'rtmp',
       scaling: 'fit',
       
       bitrates: [
         { 
         	url: "mp4:bbb-400", width: 320, height: 180, bitrate: 400,
         	isDefault: true 
         },
         { url: "mp4:bbb-800", width: 480, bitrate: 800 },
         { url: "mp4:bbb-1200", width: 720, bitrate: 1200 },
         { url: "mp4:bbb-1600", width: 1080, bitrate: 1600 }
       ]
    },
    
    plugins: {
       // bandwidth check plugin
        bwcheck: {  
      	    url: "",
      	    
      	    // CloudFront uses Adobe FMS servers
      	    serverType: 'fms',
      	    
      	    // we use dynamic switching, the appropriate bitrate is switched on the fly
      	    dynamic: true,
      	    
            netConnectionUrl: 'rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st',
            
            hdButton: true
        },
        	
        // RTMP streaming plugin
        rtmp: {
            url: "",
            netConnectionUrl: 'rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st'
        },

        ova: {
            url: "",
            
            "playOnce": true,
            
            "ads": {
              "servers": [
                   {
                      "type": "OpenX",
                      "apiAddress": "",
                      "allowAdRepetition": true
                   }
              ],
              "schedule": [
                  {
                     "zone": "5",
                     "position": "pre-roll"
                  }
              ]
            },

            "debug": {
              "levels": ""
            }
        }
    }
});