StrobeMediaPlayback na własnej stronie
Posted: 2014-07-06, 18:33
[center]
StrobeMediaPlayback (RTMP)
Kody na stronie:
Pobierz:
[/center]
StrobeMediaPlayback (RTMP)

Kody na stronie:
Code: Select all
<html>
<head>
<title>Strobe Media Playback</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="lib/swfobject.js">
</script>
<script type="text/javascript" src="lib/ParsedQueryString.js">
</script>
<script type="text/javascript">
var pqs = new ParsedQueryString();
var parameterNames = pqs.params(false);
var parameters = {
src: "rtmp://xxx", // RTMP
autoPlay: "true", // Auto Play
scaleMode: "stretch", // 16:9
streamType: "live", // LIVE
bytesLoadedUpdateInterval: "50ms",
verbose: true,
controlBarAutoHide: "true",
controlBarPosition: "bottom",
};
for (var i = 0; i < parameterNames.length; i++) {
var parameterName = parameterNames[i];
parameters[parameterName] = pqs.param(parameterName) ||
parameters[parameterName];
}
var wmodeValue = "direct";
var wmodeOptions = ["direct", "opaque", "transparent", "window"];
if (parameters.hasOwnProperty("wmode"))
{
if (wmodeOptions.indexOf(parameters.wmode) >= 0)
{
wmodeValue = parameters.wmode;
}
delete parameters.wmode;
}
// Embed the player SWF:
swfobject.embedSWF(
"lib/StrobeMediaPlayback.swf"
, "StrobeMediaPlayback"
, 640
, 360
, "10.1.0"
, "expressInstall.swf"
, parameters
, {
allowFullScreen: "true",
wmode: wmodeValue
}
, {
name: "StrobeMediaPlayback"
}
);
</script>
</head>
<table width="100%" border="0" cellspacing="5">
<tr>
<td>
<div id="StrobeMediaPlayback">
<p>
ERROR!
</p>
</div>
</td>
</tr>
</table>
</body>
</html>
Pobierz:
Code: Select all
http://dodane.pl/file/648610/StrobeMediaPlayback.zip
[/center]