Показать сообщение отдельно
Старый 23.04.2010, 16:34
NS11111 вне форума Посмотреть профиль Отправить личное сообщение для NS11111 Найти все сообщения от NS11111
  № 3  
Ответить с цитированием
NS11111

Регистрация: Mar 2010
Сообщений: 26
Разобрался.
Вот мой ответ был в английский форум:
I found the answer in examples which are in FMS folder.
There is "Buffer" example.
The following works:
I created the folder .../applications/myProgram.
I placed FLV files to
.../applications/myProgram/streams/_definst_

The code is below:
Код:
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nc.connect("rtmp://localhost/MyProgram");
...

private function onNetStatus(event:NetStatusEvent):void {
case "NetConnection.Connect.Success":
ns = new NetStream(nc);
ns.client = this;
ns.play ("myFlvFile");  //I don't write ".flv" here

vid = new Video(320, 240);
vid.attachNetStream(ns);
addChild(vid);

Хрен знает почему надо писать файлы в streams/_definst_
----------------
As for playing FLV files from HTTP server.
> The delay for your web server is most
> likely just a network issue.
> Try a smaller video maybe?
It seems the all file is downloading before playing.
That causes delay.
Bad solution in Flash player. But I don't know how to avoid that.

Thanks.

Добавлено через 31 минуту
Сделал теги но цветной текст исходника AS не получился.