Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 3.0 (http://www.flasher.ru/forum/forumdisplay.php?f=83)
-   -   SWF streaming (http://www.flasher.ru/forum/showthread.php?t=114612)

wvxvw 07.08.2008 20:28

Цитата:

framesLoaded property

framesLoaded:int [read-only]

Language Version : ActionScript 3.0
Player Version : Flash Player 9



The number of frames that are loaded from a streaming SWF file. You can use the frameLoaded property to determine whether the contents of a specific frame and all the frames before it loaded and are available locally in the browser. You can also use it to monitor the downloading of large SWF files. For example, you might want to display a message to users indicating that the SWF file is loading until a specified frame in the SWF file finishes loading.

If the movie clip contains multiple scenes, the framesLoaded property returns the number of frames loaded for all scenes in the movie clip.



Implementation
public function get framesLoaded():int
только так...

Dubinsky 11.08.2008 17:35

Пробовал этот проперти - не работает. Он все время выдает как будт окадры уже загружены (в SWF c embedded video). Мне даже пришлось лоадер высчитывать по байтам (bytesLoaded, bytesTotal). Неужели никакое событие не приходит клипу, если его стрим дошел до ручки и он ждет наполнения буфера?

wvxvw 11.08.2008 18:12

не знаю, у меня работает...

terbooter 12.08.2008 15:22

Отписался в вашей первой теме про загрузку видео

Я думаю, все-таки лучше нормально сконвертировать в FLV.
Потому что так делают все. FFmpeg пробовали?


Часовой пояс GMT +4, время: 04:53.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.