Neviem ci toto je spravna sekcia, ale dufam ze ano. Chcel by som si na stranku pridat video chat a tak som hladal na nete nejaky skript ako na to. No a nasiel som takyto skript:
Kód:
<html lang="en">
<head>
<script src="swfobject.js"></script>
<script type="text/javascript">
var flashvars =
{
'streamer': 'rtmp://xxx.xxx.xxx.xxx/live',
'file': 'livestream',
'type': 'camera',
'controlbar': 'bottom',
'stretching': 'none',
'frontcolor': '86C29D', // text & icons (green)
'backcolor': '849BC1', // playlist background (blue)
'lightcolor': 'C286BA', // selected text/track highlight (pink)
'screencolor': 'FFFFFF', // screen background (black)
'id': 'playerID',
'autostart': 'true'
};
var params =
{
'allowfullscreen': 'true',
'allowscriptaccess': 'always',
'bgcolor': '#FFFFFF'
};
var attributes =
{
'id': 'playerID',
'name': 'playerID'
};
swfobject.embedSWF('player.swf', 'player', '320', '260', '9.0.124', false, flashvars, params, attributes);
</script>
</head>
<body>
<div id="playercontainer" class="playercontainer"><a id="player" class="player" href="http://get.adobe.com/flashplayer/">Get the Adobe Flash Player to see this video.</a></div>
</body>
</html>
Tento skript funguje, vysiela sa stream z mojej kamery na stranku. No problem je ako zobrazit stream/vysielanie ostatnych uzivatelov. Nasiel som takyto skript na vysielanie streamu:
Kód:
<html>
<head>
<script type='text/javascript' src='jwplayer.js'></script>
</head>
<body>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
jwplayer('mediaspace').setup({
'flashplayer': 'player.swf',
'type': 'rtmp',
'streamer': 'rtmp://xxx.xxx.xxx.xxx/live',
'autostart': 'true',
'bufferlength': '3,
'file': 'livestream',
'controlbar': 'none',
'width': '320',
'height': '260'
});
</script>
</body>
</html>
Ale toto bohuzial nefunguje. Ziadny obraz mi to nevysiela, resp ten text nenahradi nicim. Neviete mi poradit v com by mohol byt problem?? Alebo ako by som mal vlastne ten video chat "vyskladat"? Len mi neodporucajte hotove a hlavne "zadarmo" video chaty typu tinychat, 123Flash chat, dialogoo a pod. nezmysli. Dakujem za kazdu radu.