Menu

[r1677]: / osmf / trunk / framework / OSMFTest / html-template / index.template.html  Maximize  Restore  History

Download this file

259 lines (220 with data), 7.7 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
<!-- saved from url=(0014)about:internet -->
<html lang="en">
<!--
Smart developers always View Source.
This application was built using Adobe Flex, an open source framework
for building rich Internet applications that get delivered via the
Flash Player or to desktops via Adobe AIR.
Learn more about Flex at http://flex.org
// -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- BEGIN Browser History required section -->
<link rel="stylesheet" type="text/css" href="history/history.css" />
<!-- END Browser History required section -->
<title>${title}</title>
<script src="AC_OETags.js" language="javascript"></script>
<!-- BEGIN Browser History required section -->
<script src="history/history.js" language="javascript"></script>
<!-- END Browser History required section -->
<style>
body { margin: 0px; overflow:hidden }
</style>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = ${version_major};
// Minor version of Flash required
var requiredMinorVersion = ${version_minor};
// Minor version of Flash required
var requiredRevision = ${version_revision};
// -----------------------------------------------------------------------------
// -->
function onHTMLMediaContainerConstructed(container)
{
var osmf = document["osmf"];
osmf.trace("Container " + container.containerId + " added.");
if (container.containerId == "bannerContainer")
{
container.onElementAdd = function(element)
{
osmf.trace(element.elementId + " added.");
// Elements must be loadable, so having a 'load' and 'unload'
// method defined on the object is mandatory:
element.load = function(url)
{
osmf.trace(element.elementId + " loading." + url);
activeBanner = this;
// Simulate failure based on URL pattern.
if (url == "http://www.adobe.com/invalidURL")
{
this.setLoadState(osmf.constants.loadState.LOAD_ERROR);
}
else
{
bannerImage.src = url;
// Define that we support the play trait:
element.setPlayable(true);
element.setCanPause(true);
element.setAudible(true);
// Define that we now support the temporal trait:
this.setTemporal(true);
// Set the duration of the element.
this.setDuration(2);
this.setCurrentTime(0);
this.setLoadState(osmf.constants.loadState.READY);
}
}
element.unload = function()
{
osmf.trace(element.elementId + " unloading.");
this.setLoadState(osmf.constants.loadState.UNLOADING);
element.setPlayable(false);
element.setTemporal(false);
element.setAudible(false);
element.setVolume(0.5);
element.setVolume(1);
element.setMuted(true);
element.setMuted(false);
element.setPan(-1);
element.setPan(0);
element.setCanPause(true);
element.getAudible();
element.getTemporal();
element.getPlayable();
element.getPan();
element.getMuted();
element.getVolume();
element.getCurrentTime();
element.getDuration();
element.getCanPause();
element.getPlayState();
element.resource;
element.loadState;
element.setPlayable(true);
element.setTemporal(true);
element.setAudible(true);
element.getAudible();
element.getTemporal();
element.getPlayable();
element.getPan();
element.getMuted();
element.getVolume();
element.getCurrentTime();
element.getDuration();
element.getCanPause();
element.getPlayState();
element.resource;
element.loadState;
if (activeBanner == element)
{
activeBanner = null;
}
osmf.trace(element.elementId + " uninitialized.");
bannerImage.src = null;
this.setLoadState(osmf.constants.loadState.UNINITIALIZED);
}
element.onPlayStateChange = function(newPlayState)
{
osmf.trace(element.elementId + " onPlayStateChange, new state: " + newPlayState);
if (newPlayState == osmf.constants.playState.PLAYING)
{
function tick()
{
element.intervalCount = element.intervalCount + 1;
osmf.trace(element.elementId + " tick: " + element.intervalCount);
if (element.intervalCount == 2)
{
osmf.trace(element.elementId + " completion callback");
bannerImage.src = null;
clearInterval(element.intervalId);
}
element.setCurrentTime(element.intervalCount);
}
element.intervalCount = 0;
element.intervalId = setInterval(tick, 1000 /* milliseconds */);
}
}
}
}
}
</script>
</head>
<body scroll="no">
<div id="bannerRegion">
<img id="bannerImage" src="" alt="" name="banner">
</div>
<script language="JavaScript" type="text/javascript">
<!--
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);
// Version check based upon the values defined in globals
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if ( hasProductInstall && !hasRequestedVersion ) {
// DO NOT MODIFY THE FOLLOWING FOUR LINES
// Location visited after installation is complete if installation is required
var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
var MMredirectURL = window.location;
document.title = document.title.slice(0, 47) + " - Flash Player Installation";
var MMdoctitle = document.title;
AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowScriptAccess","always",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "${swf}",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowScriptAccess","always",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here. '
+ 'This content requires the Adobe Flash Player. '
+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
// -->
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="${application}" width="${width}" height="${height}"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="${swf}.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="${bgcolor}" />
<param name="allowScriptAccess" value="sameDomain" />
<embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
width="${width}" height="${height}" name="${application}" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</noscript>
</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.