Flash中播放red5环境中的视频
本文最后更新于 6126 天前,其中的信息可能已经有所发展或是发生改变。

// 建立链接
var nc:NetConnection = new NetConnection();

// 连接到本地red5服务器
nc.connect("rtmp://localhost/oflaDemo");

var ns:NetStream = new NetStream(nc);

videoContainer.attachVideo(ns);

playButton.addEventListener("click", this);

function click():Void
{
// Spiderman3_trailer_300.flv文件在red5安装目录下的webapps/oflaDemo/streams/
// oflaDemo是上面连接中的地址
ns.play("Spiderman3_trailer_300.flv");
}

评论

  1. 钟宇
    17年前
    2007-6-13 18:04:28

    Powered by XPhpBbs © 2005-2006 The CcVita Project.
    Processed in 0.474274 second(s), 2 queries

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇