Menu

[r50]: / trunk / preloader / FlashMediaPlayback / html-template / configurator.html  Maximize  Restore  History

Download this file

625 lines (571 with data), 23.9 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Strobe Player Setup Page</title>
<!-- include the Tools -->
<script src="http://osmf.com/configurator/js/jquery.tools.min.js"></script>
<!--slider-->
<link rel="stylesheet" type="text/css" href="http://osmf.com/configurator/css/skin1.css"/>
<!--tabs-->
<!--tabs-->
<link rel="stylesheet" type="text/css" href="http://osmf.com/configurator/css/tabs.css"/>
<style type="text/css">
<!--
body {
background-image: url(http://osmf.com/configurator/images/background.jpg);
background-repeat: repeat-x;
background-color: #014A75;
font-family: Verdana, Geneva, sans-serif;
color: #333;
}
#wrapper {
margin: 0 auto;
width: 862px;
}
#header {
width: 862px;
float: left;
height: 92px;
margin: 0px 0px 0px 0px;
}
#container {
width: 862px;
float: left;
height: 862px;
margin: 0px 0px 0px 0px;
background-image: url(http://osmf.com/configurator/images/borders.png);
}
#container #contents-left {
width: 435px;
margin: 0px 0px 0px 40px;
float: left;
}
#container #contents-right {
width: 340px;
margin: 30px 0px 0px 5px;
float: left;
height: 500px;
}
#footer {
width: 862px;
float: none;
height: 64px;
margin: 0px 0px 0px 0px;
}
#contents-left div .panes {
background-image: url(http://osmf.com/configurator/images/pane-bg.png);
height: 777px;
}
#pane-titles {
margin: 0px 0px 0px 10px;
font-size: 11px;
font-weight: bold;
}
#tab1-pane {
margin: 0px 10px 10px 10px;
width: 412px;
font-size: 12px;
height: 725px;
padding-top: 10px;
}
#tab1-pane #tab1-pane-sideborder #textfield {
}
#tab1-pane #tab1-pane-topborder {
background-image: url(http://osmf.com/configurator/images/tab1-pane-topborder.png);
height: 16px;
}
#tab1-pane #tab1-pane-sideborder {
background-image: url(http://osmf.com/configurator/images/tab1-pane-sideborder.png);
background-repeat: repeat-y;
padding-left: 15px;
padding-bottom: 5px;
}
#tab1-pane #tab1-pane-bottomborder {
background-image: url(http://osmf.com/configurator/images/tab1-pane-bottomborder.png);
height: 16px;
margin-bottom: 15px;
}
#tab1-pane #tab1-pane-sideborder p {
margin: 0px 0px 5px 0px;
font-size: 11px;
}
#tab1-pane #tab1-pane-sideborder h4 {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 5px;
margin-left: 0px;
font-size: 11px;
font-weight: bold;
}
#tab2-pane {
margin: 0px 10px 10px 10px;
width: 412px;
font-size: 12px;
height: 725px;
padding-top: 10px;
}
#tab2-pane #tab2-pane-topborder {
background-image: url(http://osmf.com/configurator/images/tab1-pane-topborder.png);
height: 16px;
}
#tab2-pane #tab2-pane-sideborder {
background-image: url(http://osmf.com/configurator/images/tab1-pane-sideborder.png);
background-repeat: repeat-y;
padding-left: 10px;
padding-bottom: 5px;
}
#tab2-pane #tab2-pane-bottomborder {
background-image: url(http://osmf.com/configurator/images/tab1-pane-bottomborder.png);
height: 16px;
margin-bottom: 20px;
}
#tab2-pane #tab2-pane-sideborder p {
margin: 0px 0px 5px 0px;
font-size: 11px;
}
#tab2-pane #tab2-pane-sideborder h4 {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 5px;
margin-left: 0px;
font-size: 11px;
font-weight: bold;
}
#rightpane {
margin: 10px;
width: 412px;
font-size: 12px;
}
#rightpane-topborder {
background-image: url(http://osmf.com/configurator/images/rightpane-topborder.png);
height: 16px;
}
#rightpane-sideborder {
background-image: url(http://osmf.com/configurator/images/rightpane-sideborder.png);
background-repeat: repeat-y;
padding-left: 10px;
height: 750px;
}
#rightpane-bottomborder {
background-image: url(http://osmf.com/configurator/images/rightpane-bottomborder.png);
height: 16px;
margin-bottom: 0px;
margin-top: 0px;
}
#contents-right #rightpane-sideborder p {
margin: 0px;
}
#player {
margin-bottom: 30px;
}
#swfobjcode {
font-family: monospace;
font-size: 12px;
width: 300px;
height: 200px;
}
#flashvarscode {
height: 75px;
width: 300px;
}
.defaults {
color: #999;
}
.radioBtn {
float: left;
margin: 2px 0px 0px 0px;
padding: 0px;
}
code {
display: block;
width: 460px;
font-family: monospace;
margin: 10px 0 0px 0;
font-size: 12px;
line-height: 14px;
overflow: auto;
background-color: #F5F5F5;
padding: 5px;
border: 1px solid #999;
}
a.button-axn {
/* Sliding right image */
background: transparent url('http://osmf.com/configurator/images/call-to-axn-right.png') no-repeat scroll top right;
display: block;
float: left;
height: 34px; /* CHANGE THIS VALUE ACCORDING TO IMAGE HEIGHT */
margin-right: 0px;
padding-right: 10px; /* CHENGE THIS VALUE ACCORDING TO RIGHT IMAGE WIDTH */
/* FONT PROPERTIES */
text-decoration: none;
color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
font-weight:bold;
}
a.button-axn span {
/* Background left image */
background: transparent url('http://osmf.com/configurator/images/call-to-axn-left.png') no-repeat;
display: block;
line-height: 20px; /* CHANGE THIS VALUE ACCORDING TO BUTTONG HEIGHT */
padding: 7px 5px 7px 10px;
}
a.button-axn:hover span{
text-decoration:none;
color:#ffa304;
}
-->
</style></head>
<body onload="generateCode();">
<!-- Begin Wrapper -->
<div id="wrapper">
<!-- Begin Header -->
<div id="header"><img src="http://osmf.com/configurator/images/header.png" width="862" height="92" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="569,43,711,75" href="http://www.osmf.com" target="_blank" />
<area shape="rect" coords="768,25,800,72" href="http://www.adobe.com" target="_self" />
</map>
</div>
<!-- End Header -->
<!-- Begin Content -->
<div id="container">
<div id="contents-left">
<div style="width: 435px;background-repeat:repeat-both;">
<!-- the tabs -->
<ul class="tabs">
<li><a href="#" class="current">Player</a></li>
<li><a href="#" class="">Advanced Options</a></li>
<li><a href="#" class="">Skinning</a></li>
</ul>
<!-- tab "panes" -->
<div class="panes">
<!--Tab 1 Contents-->
<div style="display: block;">
<div id="tab1-pane">
<div id="pane-titles">Basics</div>
<div id="tab1-pane-topborder"></div>
<div id="tab1-pane-sideborder">
<p><acronym title="The location of the swf source">SWF Source <span class="defaults">(URL)</span></acronym>
<input type="text" name="source" id="source" value="http://osmf.org/configurator/StrobeMediaPlayback.swf" size="55"/>
</p>
<p>Video Source <span class="defaults">(URL)</span>
<input type="text" name="src" id="fv_src" value="http://osmf.org/configurator/videos/strobe.flv" size="55"/>
</p>
<p><br />
Dimensions:
</p>
<p>
Width <span class="defaults">(pixels)</span>:
<input name="width" type="text" id="width" size="5" value="317"/>
Height <span class="defaults">(pixels)</span>:
<input name="height" type="text" id="height" size="5" value="250"/>
</p>
<p><br />
Stream Type:
</p>
<p>
<input type="radio" name="streamType" id="fv_streamType" value="" checked="checked" />
Live or recorded
<input type="radio" name="streamType" id="fv_streamType" value="live" />Live
<input type="radio" name="streamType" id="fv_streamType" value="recorded" />Recorded
<input type="radio" name="streamType" id="fv_streamType" value="dvr" />DVR
</p>
<p>Configuration file location:
<input name="configuration" type="text" id="fv_configuration" size="30" />
</p>
<p>Skinning file location:
<input name="skin" type="text" id="fv_skin" size="35" />
</p>
</div>
<div id="tab1-pane-bottomborder"></div>
<div id="pane-titles">Appearance</div>
<div id="tab1-pane-topborder"></div>
<div id="tab1-pane-sideborder">
<p>Scaling Method: </p>
<p>
<input name="scaleMode" type="radio" id="fv_scaleMode" value="" checked="checked"/>
Letterbox
<input type="radio" name="scaleMode" id="fv_scaleMode" value="none" />
None
<input type="radio" name="scaleMode" id="fv_scaleMode" value="stretch" />
Stretch
<input type="radio" name="scaleMode" id="fv_scaleMode" value="zoom" />
Zoom</p>
<p><br />
Control Bar Position:</p>
<p>
<input type="radio" name="controlBarPosition" id="fv_controlBarPosition" value="" checked="checked"/>
Bottom
<input type="radio" name="controlBarPosition" id="fv_controlBarPosition" value="over" />
Over
<input type="radio" name="controlBarPosition" id="fv_controlBarPosition" value="none" />
None</p>
<p>Autohide the control bar?
<input type="radio" name="autoHideControlBar" id="fv_autoHideControlBar" value="" checked="checked" />
Yes
<input type="radio" name="autoHideControlBar" id="fv_autoHideControlBar" value="false" />
No </p>
<p>Background color (hexadecimal):
<input name="backgroundColor" type="text" id="fv_backgroundColor" size="10" class="color {required:false}" />
</p>
<p>Poster frame file location:
<input name="poster" type="text" id="fv_poster" size="30" value=""/>
</p>
<p>Include play button overlay?
<input type="radio" name="playButtonOverlay" id="fv_playButtonOverlay" value="" checked="checked" />
Yes
<input type="radio" name="playButtonOverlay" id="fv_playButtonOverlay" value="false" />
No </p>
<p>Include buffering overlay?
<input type="radio" name="bufferingOverlay" id="fv_bufferingOverlay" value="" checked="checked" />
Yes
<input type="radio" name="bufferingOverlay" id="fv_bufferingOverlay" value="false" />
No </p>
<p>Expose verbose error messages?
<input type="radio" name="verbose" id="fv_verbose" value="" checked="checked" />
Yes
<input type="radio" name="verbose" id="fv_verbose" value="false" />
No </p>
</div>
<div id="tab1-pane-bottomborder"></div>
<div id="pane-titles">Auto Playback</div>
<div id="tab1-pane-topborder"></div>
<div id="tab1-pane-sideborder">
<p>Autoloop content?
<input type="radio" name="loop" id="fv_loop" value="true" />
Yes
<input type="radio" name="loop" id="fv_loop" value="" checked="checked"/>
No</p>
<p>Autoplay content?
<input type="radio" name="autoPlay" id="fv_autoPlay" value="true" />
Yes
<input type="radio" name="autoPlay" id="fv_autoPlay" value="" checked="checked"/>
No</p>
</div>
<div id="tab1-pane-bottomborder"></div>
</div>
</div>
<!--Tab 2 Contents-->
<div style="display: none;">
<div id="tab2-pane">
<div id="pane-titles">Buffering</div>
<div id="tab2-pane-topborder"></div>
<div id="tab2-pane-sideborder">
<p>Allow Buffering optimization?
<input type="radio" name="optimizePlayback" id="fv_optimizePlayback" value="true"/>
Yes
<input type="radio" name="optimizePlayback" id="fv_optimizePlayback" value="false" checked="checked"/>
No
</p>
<p>Initial buffer length <span class="defaults">(seconds)</span>:
<input name="initialBufferTime" type="text" id="fv_initialBufferTime" size="5" /></p>
<p>Maximum buffer length <span class="defaults">(seconds)</span>:
<input type="text" name="expandedBufferTime" id="fv_expandedBufferTime" size="5"/></p>
<p>Minimum length of continuous playback <span class="defaults">(seconds)</span>:
<input type="text" name="minContinuousPlaybackTime" id="fv_minContinuousPlaybackTime" size="5" /></p>
</div>
<div id="tab2-pane-bottomborder"></div>
</div>
<!--div id="pane-titles">Version Control</div>
<div id="tab2-pane-topborder"></div>
<div id="tab2-pane-sideborder">
<p>Target Flash Player Version
<input type="radio" name="fpVersion" id="fv_fpVersion" value="true"/>
10.1
<input type="radio" name="fpVersion" id="fv_fpVersion" value="false" checked="checked"/>
10.0
</p>
<p>Target FlashMediaPlayback Version
<input type="radio" name="fmpVersion" id="fv_fmpVersion" value="true"/>
<br />
Use the latest version - your player will use the link to the latest FlashMediaPlayback version.
Note that we don't promise backwards
<br />
<input type="radio" name="fmpVersion" id="fv_fmpVersion" value="false" checked="checked"/>
<br />
Keep the link to the current (1.0) version even if we release a new version.
</p>
</div>
<div id="tab3-pane-bottomborder"></div>
</div-->
</div>
<!--Tab 3 Contents-->
<div style="display: none; height:500px; "></div>
</div>
</div>
<div style="margin:10px 0px 10px 0px; float:right;"><a style="margin-left:90px;" href="#" target="_self" class="button-axn" onclick="generateCode()"><span>Preview and Update</span></a></div>
</div>
<div id="contents-right">
<div id="rightpane-topborder"></div>
<div id="rightpane-sideborder">
<div id="preview-player">
<div id="preview-player-title"><img src="http://osmf.com/configurator/images/Preview-Player-title.png" width="226" height="40" /></div>
<div id="player"></div>
</div>
<div id="preview-code">
<div id="preview-code-title"><img src="http://osmf.com/configurator/images/Preview-Embed-Code-title.png" width="227" height="41" /></div>
<span id="copytext"><code id="swfobjcode"></code></span>
<textarea id="holdtext" style="display:none;"></textarea>
<h4> Embed variables </h4>
<code id="flashvarscode"></code>
</div>
</div>
<div id="rightpane-bottomborder"></div>
<div style="margin:5px 0px 10px 0px; float:right;"><a style="margin-left:90px;" href="#" target="_self" class="button-axn" onClick="ClipBoard();"><span>Copy Code</span></a></div> </div>
<!--End Content-->
<!--Begin Footer-->
<div id="footer"><img src="http://osmf.com/configurator/images/footer.png" width="862" height="64" /></div>
<!--End Footer-->
</div>
<!-- End Banner -->
</div>
<script>
$(document).ready(function() {
$(function() {
// setup ul.tabs to work as tabs for each div directly under div.panes
$("ul.tabs").tabs("div.panes > div");
// setup for the slider
$(":range").rangeinput();
});
});
</script>
<script type="text/javascript" src="http://osmf.com/configurator/js/jscolor/jscolor.js"></script>
<!-- <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
--> <script type="text/javascript">
//
var swfName='FlashMediaPlayback_1.0.10000_for_fp10.1.swf';
var flashVars = '';
var sourceSwf = '';
var width = '';
var height = '';
var extraVars= 0;
$(window).load(function () {
var loc = location.href;
loc = loc.substring(0, loc.lastIndexOf('/'));
$("#source").val(loc + "/" + swfName);
$("#usePlugin").change(function() {
var outputPluginForm = '';
switch ($("#usePlugin").val()) {
case "ConfigurationEchoPlugin":
outputPluginForm = $("#pluginparams").html();
outputPluginForm += '<hr /> <div id="ConfigurationEchoPlugin">';
outputPluginForm += '<label><acronym title="The location of plugin">plugin_ConfigurationEchoPlugin</acronym></label>';
outputPluginForm += '<input id="fv_plugin_ConfigurationEchoPlugin" name="plugin_ConfigurationEchoPlugin" value="'+ loc +'/ConfigurationEchoPlugin.swf" type="text"/>';
outputPluginForm += '<label><acronym title="Namespace">ConfigurationEchoPlugin_namespace</acronym></label>';
outputPluginForm += '<input id="fv_ConfigurationEchoPlugin_namespace" name="ConfigurationEchoPlugin_namespace" value="http://www.osmf.org/plugin/metadata/1.0" type="text"/>';
outputPluginForm += '<label><acronym title="First test value">ConfigurationEchoPlugin_value1</acronym></label>';
outputPluginForm += '<input id="fv_ConfigurationEchoPlugin_value1" name="ConfigurationEchoPlugin_value1" value="something" type="text"/>';
outputPluginForm += '<label><acronym title="Second test value">ConfigurationEchoPlugin_value2</acronym></label>';
outputPluginForm += '<input id="fv_ConfigurationEchoPlugin_value2" name="ConfigurationEchoPlugin_value2" value="something_else" type="text"/>';
outputPluginForm += '<label><acronym title="Alert">ConfigurationEchoPlugin_alert</acronym></label>';
outputPluginForm += '<input id="fv_ConfigurationEchoPlugin_alert" name="ConfigurationEchoPlugin_alert" value="" type="text"/>';
outputPluginForm += '</div>';
break;
case "other":
outputPluginForm = $("#pluginparams").html();
outputPluginForm += '<hr /><div id="OtherPlugin">';
outputPluginForm += '<label><acronym title="The name of the plugin">Plugin Name</acronym></label>';
outputPluginForm += '<input id="plugin_MyPlugin" name="plugin_ConfigurationEchoPlugin" value="MyPlugin" type="text"/>';
outputPluginForm += '<label><div id="plugin_custom_name"><acronym title="The location of the plugin" id="MyPlugin_name">plugin_MyPlugin</acronym></div></label>';
outputPluginForm += '<input id="fv_plugin_MyPlugin" name="plugin_MyPlugin" value="MyPluginLocation.swf" type="text"/>';
outputPluginForm += '<label><div id="MyPlugin_namespace"><acronym title="Namespace">MyPlugin_namespace</acronym></div></label>';
outputPluginForm += '<input id="fv_MyPlugin_namespace" name="MyPlugin_namespace" value="http://www.osmf.org/plugin/metadata/1.0" type="text"/>';
outputPluginForm += '</div><label id="addNewVariable">Add new Variable<label>';
break;
case "none":
outputPluginForm = '';
break;
default:
outputPluginForm = $("#pluginparams").html();
}
$("#pluginparams").html(outputPluginForm);
$("#plugin_MyPlugin").change(function() {
var newPluginName = $("#plugin_MyPlugin").val();
$("#fv_plugin_MyPlugin").attr('name', 'plugin_' + newPluginName);
$("#plugin_custom_name").html('<acronym title="The location of the plugin" id="MyPlugin_name">'+ 'plugin_' + newPluginName +'</acronym>');
$("#MyPlugin_namespace").html('<acronym title="Namespace">'+newPluginName+'_namespace</acronym></div>');
});
$("#addNewVariable").click(function() {
extraVars++;
var myPluginName = $("#plugin_MyPlugin").val();
var extraVarOutput = '<label><acronym title="The name of the Variable">Variable Name</acronym></label>';
extraVarOutput += '<input id="plugin_MyVariable'+extraVars+'" name="Var_Name'+extraVars+'" value="MyVar'+extraVars+'" type="text"/>';
extraVarOutput += '<label><div id="variable_custom_name_'+extraVars+'"><acronym title="The value of your custom Variable">'+myPluginName+'_MyVar'+extraVars+'</acronym></div></label>';
extraVarOutput += '<input id="fv_MyPlugin_MyVar'+extraVars+'" name="'+myPluginName+'_MyVar'+extraVars+'" value="value'+extraVars+'" type="text"/>';
$("#OtherPlugin").append(extraVarOutput);
$("#plugin_MyVariable"+extraVars).change(function() {
var newVariableName = myPluginName + '_' + $("#plugin_MyVariable"+extraVars).val();
$("#fv_MyPlugin_MyVar"+extraVars).attr('name', newVariableName);
$("#variable_custom_name_"+extraVars).html('<acronym title="The value of your custom Variable">'+newVariableName+'</acronym>');
});
});
});
});
function addPluginVariable(itm) {
alert("muie");
}
function toggleDisplay(itm) {
$("#"+itm).toggle();
}
function generateCode() {
$("#previewLabels").show();
getVars();
embedPlayer();
// generatePreviewCode();
}
function embedPlayer() {
var embedCode = '<object width="' + width + '" height="' + height +'"> ';
embedCode += '<param name="movie" value="'+ sourceSwf + '"></param>';
embedCode += '<param name="flashvars" value="'+ flashVars + '"></param>';
embedCode += '<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>';
embedCode += '<embed src="' + sourceSwf + '" type="application/x-shockwave-flash"';
embedCode += ' allowscriptaccess="always" allowfullscreen="true" ';
embedCode += ' width="' + width + '" height="'+ height +'" ';
embedCode += 'flashvars="' + flashVars + '">';
embedCode += '</embed></object>';
$("#player").html(embedCode);
$("#swfobjcode").text(embedCode);
printFlashVars();
}
function generatePreviewCode() {
var embedCode = '&lt;object width=&quot;' + width + '&quot; height=&quot;' + height +'&quot;&gt; <br/>';
embedCode += '&lt;param name=&quot;movie&quot; value=&quot;'+ sourceSwf + '&quot;&gt;&lt;/param&gt;<br/>';
embedCode += '&lt;param name=&quot;flashvars&quot; value=&quot;'+ flashVars + '&quot;&gt;&lt;/param&gt;<br/>';
embedCode += '&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;<br/>';
embedCode += '&lt;embed src=&quot;' + sourceSwf + '&quot; type=&quot;application/x-shockwave-flash&quot;<br/>';
embedCode += ' allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot;<br/> ';
embedCode += ' width=&quot;' + width + '&quot; height=&quot;'+ height +'&quot;<br/> ';
embedCode += 'flashvars=&quot;' + flashVars + '&quot;&gt; <br/>';
embedCode += '&lt;/embed&gt;&lt;/object&gt; <br/>';
$("#swfobjcode").html(embedCode);
}
function getVars() {
flashVars = $("input[value!=],select[value!=]").filter('[id^=fv_]').serialize();
sourceSwf = $("#source").val();
width = $("#width").val();
height = $("#height").val();
}
function goToDebug() {
getVars();
window.location = 'StrobeMediaPlayback.html?width='+ width + '&height=' + height + '&' + flashVars;
}
function printFlashVars() {
var flashVarsArray = $("input[value!=],select[value!=]").filter('[id^=fv_]').serializeArray();
var outputVars = '';
outputVars += 'Source Swf: ' + sourceSwf + ' <br> ';
outputVars += ' width: ' + width + ' height: '+ height +' <br> ';
jQuery.each(flashVarsArray, function(i, flashvar){
outputVars += flashvar.name + ': ' + flashvar.value + ' <br> ';
});
$("#flashvarscode").html(outputVars);
}
function ClipBoard() {
holdtext.innerText = copytext.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("RemoveFormat");
Copied.execCommand("Copy");
}
</script>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.