首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Flash >

用过red5的来 解释下系统自己带的例子SimpleBroadcaster的意思,该如何解决

2012-04-12 
用过red5的来 解释下系统自己带的例子SimpleBroadcaster的意思系统这个例子 点击后 能出来自己的视频和声

用过red5的来 解释下系统自己带的例子SimpleBroadcaster的意思
系统这个例子 点击后 能出来自己的视频和声音 
他怎么推ns.publish("red5BroadcastDemo", "live");
推到那里去了 别人怎么看到呢?
function broadcastClick():Void
{
// This FLV is recorded to webapps/oflaDemo/streams/ directory
// attach cam and mic to the NetStream Object
ns.attachVideo(cam);
ns.attachAudio(mic);

// attach the cam to the videoContainer on stage so we can see ourselves
videoContainer.attachVideo(cam);

// publish your cam/mic to red5 for broadcasting
ns.publish("red5BroadcastDemo", "live");

// disable the playbutton
playButton.enabled = false;

// enable the stop button
stopButton.enabled = true;
}


[解决办法]
我下的red5也不能用,但后来试着自己弄了弄,把理解写下来,希望有高手来指点。
ns.publish( "red5BroadcastDemo ", "live "); 
就是live模式,视频流名字为red5BroadcastDemo 
那么其他连接进来的客户端就可以通过视频流名字获取视频流并播放,我在局域网测试通过。
[解决办法]
没遇到过这种情况.

热点排行