Changeset 247
- Timestamp:
- 07/22/09 23:10:45 (4 years ago)
- Location:
- testing
- Files:
-
- 2 edited
-
index.html (modified) (4 diffs)
-
settings.js (modified) (27 diffs)
Legend:
- Unmodified
- Added
- Removed
-
testing/index.html
r224 r247 11 11 /** Insert a new example in the page. **/ 12 12 insert: function(evt) { 13 evt.preventDefault();14 var obj = settings.examples[$('#examples :selected').text()];13 if(evt) { evt.preventDefault(); } 14 var obj = settings.examples[$('#examples').val()]; 15 15 var arr = []; 16 16 if(obj['plugins']) { … … 23 23 /** Fill out the flashvars with example data. **/ 24 24 fillout: function(set) { 25 var obj = settings.examples[$('#examples :selected').text()];25 var obj = settings.examples[$('#examples').val()]; 26 26 var arr = $("#"+set).find('input'); 27 27 for(var i=0; i<arr.length; i++) { … … 197 197 } 198 198 alert(txt); 199 }, 200 /** Preload the appropriate example. **/ 201 loadExample: function() { 202 var rgx = '[^/]+$'; 203 var res = (new RegExp(rgx)).exec(window.parent.location.href); 204 if(res) { 205 $('#examples').val(res[res.length-1]); 206 $.insert(); 207 } 199 208 } 200 209 }); … … 212 221 for (dct in settings) { 213 222 for (itm in settings[dct]) { 214 $("#"+dct).append("<option>"+itm+"</option>"); 223 if(dct == 'examples') { 224 var tit = (settings[dct][itm]['title']) ? itm+". "+settings[dct][itm]['title'] : ''; 225 $("#"+dct).append("<option value='"+itm+"'>"+tit+"</option>"); 226 } else { 227 $("#"+dct).append("<option>"+itm+"</option>"); 228 } 215 229 } 216 230 } 217 231 $.tabs(); 232 $.loadExample(); 218 233 $('#examplesform').css('display','block'); 219 234 $('#sources').css('display','block'); -
testing/settings.js
r246 r247 72 72 /** All the setup examples with their flashvars. **/ 73 73 examples: { 74 '== Choose an example ==': {},75 'FLV video': {74 1: { 75 title:'FLV video', 76 76 file:'../../testing/files/bunny.flv', 77 77 image:'files/bunny.jpg', … … 79 79 width:400 80 80 }, 81 'MP4 video': { 81 2: { 82 title:'MP4 video', 82 83 file:'../../testing/files/bunny.mp4', 83 84 image:'files/bunny.jpg', … … 85 86 width:400 86 87 }, 87 'MP3 audio': { 88 3: { 89 title:'MP3 audio', 88 90 file:'files/bunny.mp3', 89 91 height:20, 90 92 width:400 91 93 }, 92 'AAC audio': { 94 4: { 95 title:'AAC audio', 93 96 file:'../../testing/files/bunny.m4a', 94 97 height:20, 95 98 width:400 96 99 }, 97 'JPG image': { 100 5: { 101 title:'JPG image', 98 102 file:'files/bunny.jpg', 99 103 height:240, 100 104 width:400 101 105 }, 102 'PNG image': { 106 6: { 107 title:'PNG image', 103 108 file:'files/bunny.png', 104 109 height:240, 105 110 width:400 106 111 }, 107 'Youtube video': { 112 7: { 113 title:'Youtube video', 108 114 file: 'http://youtube.com/watch?v=IBTE-RoMsvw', 109 115 height: 240, 110 116 width: 400 111 117 }, 112 ' ': {113 },114 'ASX playlist': {118 10: {}, 119 11: { 120 title:'ASX playlist', 115 121 file:'files/asx.xml', 116 122 height:240, … … 119 125 playlistsize:400 120 126 }, 121 'ATOM playlist': { 127 12: { 128 title:'ATOM playlist', 122 129 file:'files/atom.xml', 123 130 height:240, … … 126 133 playlistsize:400 127 134 }, 128 'iRSS playlist': { 135 13: { 136 title:'iRSS playlist', 129 137 file:'files/irss.xml', 130 138 height:240, … … 133 141 playlistsize:400 134 142 }, 135 'mRSS playlist': { 143 14: { 144 title:'mRSS playlist', 136 145 file:'files/mrss.xml', 137 146 height:240, … … 140 149 playlistsize:400 141 150 }, 142 'SMIL playlist': { 151 15: { 152 title:'SMIL playlist', 143 153 file:'files/smil.xml', 144 154 height:240, … … 147 157 playlistsize:400 148 158 }, 149 'XSPF playlist': { 159 16: { 160 title:'XSPF playlist', 150 161 file:'files/xspf.xml', 151 162 height:240, … … 154 165 playlistsize:400 155 166 }, 156 ' ': {157 },158 'Different colors (to test skins)': {167 20: {}, 168 21: { 169 title:'Different colors', 159 170 file:'files/bunnies.xml', 160 171 height:240, … … 167 178 screencolor:'FFFFFF' 168 179 }, 169 'Logo, title and no click': { 180 22: { 181 title:'Logo, title and no click', 170 182 file:'files/bunnies.xml', 171 183 height:240, … … 178 190 controlbar:'over' 179 191 }, 180 'Autostart, shuffle and repeat': { 192 23: { 193 title:'Autostart, shuffle and repeat', 181 194 file:'files/bunnies.xml', 182 195 repeat:'always', … … 191 204 playlistsize:400 192 205 }, 193 'Stretched, stacked and muted': { 206 24: { 207 title:'Stretched, stacked and muted', 194 208 file:'files/bunnies.xml', 195 209 stretching:'fill', … … 201 215 playlistsize:400 202 216 }, 203 'Loading from config xml': { 217 25: { 218 title:'Loading from config xml', 204 219 config:'files/config.xml', 205 220 height:240, 206 221 width:500 207 222 }, 208 'Start and duration flashvars': { 223 26: { 224 title:'Start and duration flashvars', 209 225 file:'files/bunny.mp3', 210 226 height:20, … … 215 231 autostart:'true' 216 232 }, 217 ' ': {218 },219 'RTMP streamed FLV': {233 30: {}, 234 31: { 235 title:'RTMP streamed FLV', 220 236 file:'vdoxadmin/jeroen/bunny.flv', 221 237 streamer:'rtmp://fl9.maelstrom.jet-stream.nl:80/vod/', 222 238 type:'rtmp', 223 title:'RMP streamed FLV', 224 displaytitle:'true', 225 height:240, 226 width:400 227 }, 228 'RTMP streamed MP3': { 239 height:240, 240 width:400 241 }, 242 32: { 243 title:'RTMP streamed MP3', 229 244 file:'vdoxadmin/jeroen/bunny.mp3', 230 245 streamer:'rtmp://fl9.maelstrom.jet-stream.nl:80/vod/', 231 246 type:'rtmp', 232 title:'RTMP Streamed MP3',233 displaytitle:'true',234 247 height:20, 235 248 width:400 236 249 }, 237 'HTTP streamed FLV': { 250 33: { 251 title:'HTTP streamed FLV', 238 252 file:'bunny.flv', 239 253 streamer:'http://www.longtailvideo.com/jw/embed/xmoov.php', 240 254 type:'http', 241 title:'HTTP streamed FLV', 242 displaytitle:'true', 243 height:240, 244 width:400 245 }, 246 'Bitgravity streamed FLV': { 255 height:240, 256 width:400 257 }, 258 34: { 259 title:'Bitgravity streamed FLV', 247 260 file:'http://bitcast-a.bitgravity.com/botr/ifNSlhVa/videos/ntPYsD4L-326.flv', 248 261 type:'bitgravity', 249 title:'Bitgravity streamed FLV',250 262 displaytitle:'true', 251 263 height:240, 252 264 width:400 253 265 }, 254 'Bitgravity streamed MP4': { 266 35: { 267 title:'Bitgravity streamed MP4', 255 268 file:'http://bitcast-a.bitgravity.com/botr/ifNSlhVa/videos/ntPYsD4L-327.mp4', 256 269 type:'bitgravity', 257 title:'Bitgravity streamed MP4', 258 displaytitle:'true', 259 height:240, 260 width:400 261 }, 262 'Highwinds streamed FLV': { 270 height:240, 271 width:400 272 }, 273 36: { 274 title:'Highwinds streamed FLV', 263 275 file:'http://hwcdn.net/x7z8b2t5/fms/bunny.flv', 264 276 type:'highwinds', 265 title:'Highwinds streamed FLV', 266 displaytitle:'true', 267 height:240, 268 width:400 269 }, 270 'Limelight/Akamai live stream': { 277 height:240, 278 width:400 279 }, 280 37: { 281 title:'Limelight/Akamai live stream', 271 282 file:'live24x7', 272 283 type:'fcsubscribe', 273 284 streamer:'rtmp://llnwpm.fc.llnwd.net/llnwpm', 274 title:'Limelight/Akamai live stream', 275 displaytitle:'true', 276 height:240, 277 width:400 278 }, 279 'S3 Authenticated video': { 285 height:240, 286 width:400 287 }, 288 38: { 289 title:'S3 Authenticated Video', 280 290 file:'http%3A%2F%2Fcontent.longtailvideo.com%2Fvideos%2Fauthenticate.flv%3FAWSAccessKeyId%3DAKIAIMO2UYBVC6GA3WYQ%26Expires%3D1279755021%26Signature%3DOESMzl5TB%252Ff7rrSs18%252B52nPy9ww%253D', 281 title:'S3 Authenticated Video',282 291 type:'video', 283 displaytitle:'true', 284 height:240, 285 width:400 286 }, 287 ' ': { 288 }, 289 'Audiodescription and captions plugins': { 292 height:240, 293 width:400 294 }, 295 50: {}, 296 51: { 297 title:'Audiodescription and captions plugins', 290 298 file:'../../testing/files/corrie.flv', 291 299 height:240, … … 295 303 'audiodescription.file':'files/corrie.mp3' 296 304 }, 297 'Autostarter plugin': { 305 52: { 306 title:'Autostarter plugin', 298 307 file:'files/bunny.mp3', 299 308 height:20, … … 301 310 plugins:'autostarter' 302 311 }, 303 'Captions plugin (embedded captions)': { 312 53: { 313 title:'Captions plugin (embedded captions)', 304 314 file:'../../testing/files/bunny.mp4', 305 315 height:240, … … 307 317 plugins:'captions' 308 318 }, 309 'Clickproxy plugin': { 319 54: { 320 title:'Clickproxy plugin', 310 321 height:240, 311 322 width:800, … … 314 325 'clickproxy.listener':'$.alert' 315 326 }, 316 'HD plugin': { 327 55: { 328 title:'HD plugin', 317 329 file:'../../testing/files/bunny.flv', 318 330 height:240, … … 321 333 'hd.file':'../../testing/files/bunny.m4v' 322 334 }, 323 'Livestream plugin': { 335 56: { 336 title:'Livestream plugin', 324 337 file:'../../testing/files/bunny.flv', 325 338 height:260, … … 330 343 'livestream.streamer':'rtmp://fl9.maelstrom.jet-stream.nl:80/vod/' 331 344 }, 332 'Metaviewer plugin': { 345 57: { 346 title:'Metaviewer plugin', 333 347 file:'../../testing/files/bunny.flv', 334 348 height:260, … … 340 354 'metaviewer.size':400 341 355 }, 342 'Revolt plugin': { 356 58: { 357 title:'Revolt plugin', 343 358 file:'files/bunny.mp3', 344 359 height:260, … … 348 363 'revolt.gain':2 349 364 }, 350 'Searchbar plugin': { 365 59: { 366 title:'Searchbar plugin', 351 367 file:'../../testing/files/bunny.flv', 352 368 image:'files/bunny.jpg', … … 357 373 'searchbar.script':'files/bunnies.xml' 358 374 }, 359 'Sharing plugin': { 375 60: { 376 title:'Sharing plugin', 360 377 dock:true, 361 378 file:'../../testing/files/bunny.flv', … … 366 383 'sharing.link':'http://www.bigbuckbunny.org/' 367 384 }, 368 'Snapshot plugin': { 385 61: { 386 title:'Snapshot plugin', 369 387 file:'../../testing/files/bunny.m4v', 370 388 height:260, … … 373 391 'snapshot.script':'http://www.jeroenwijering.com/test/snapshot/create.php' 374 392 }, 375 ' ': {376 },377 'Playlist with streamers': {393 80: {}, 394 81: { 395 title:'Playlist with streamers', 378 396 file:'files/streamers.xml', 379 397 height:240, … … 384 402 lightcolor:'77AA22' 385 403 }, 386 'Playlist with chapters': { 404 82: { 405 title:'Playlist with chapters', 387 406 file:'files/chapters.xml', 388 407 height:240, … … 394 413 lightcolor:'77AA22' 395 414 }, 396 'Playlist from youtube': { 415 83:{ 416 title:'Playlist from youtube', 397 417 file:'http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured?v=2', 398 418 height:240,
Note: See TracChangeset
for help on using the changeset viewer.
