Форум Flasher.ru
Ближайшие курсы в Школе RealTime
Список интенсивных курсов: [см.]  
  
Специальные предложения: [см.]  
  
 
Блоги Правила Справка Пользователи Календарь Поиск рулит! Сообщения за день Все разделы прочитаны
 

Вернуться   Форум Flasher.ru > Архив Flasher.ru > Flash > Advanced

Версия для печати  Отправить по электронной почте    « Предыдущая тема | Следующая тема »  
Опции темы Опции просмотра
 
Создать новую тему  
Старый 22.09.2002, 19:56
countZero вне форума Посмотреть профиль Отправить личное сообщение для countZero Посетить домашнюю страницу countZero Найти все сообщения от countZero
  № 1  
countZero

Регистрация: Nov 2000
Адрес: Tel Aviv
Сообщений: 14
Отправить сообщение для countZero с помощью ICQ
Tip StreamVideo + Flash

Покопался покопался и ничего пока толком не нашел по вопросу как во фляш подгружать стреаминг видео. (Видео идет в реальном времени). Вариант с Flash communication Server не подходит ввиду дороговизны....
Может кто уже сталкивался с подобной проблеммой?
__________________
Leon Danilov
-----------------------------
leon@ewave.co.il
Flash designer and programmer
-----------------------------
Ewave LTD, Internet Solutions
www.ewave.co.il

Старый 22.09.2002, 23:45
specweb вне форума Посмотреть профиль Отправить личное сообщение для specweb Посетить домашнюю страницу specweb Найти все сообщения от specweb
  № 2  
specweb
 
Аватар для specweb

Регистрация: Mar 2002
Адрес: USA, New York
Сообщений: 433
Отправить сообщение для specweb с помощью ICQ Отправить сообщение для specweb с помощью AIM Отправить сообщение для specweb с помощью Yahoo
Stream Video Cherez flash prognati ne lizy.
__________________
. . . . . .22200040W. . . . . .

Старый 23.09.2002, 04:53
countZero вне форума Посмотреть профиль Отправить личное сообщение для countZero Посетить домашнюю страницу countZero Найти все сообщения от countZero
  № 3  
countZero

Регистрация: Nov 2000
Адрес: Tel Aviv
Сообщений: 14
Отправить сообщение для countZero с помощью ICQ
--------------------------------------
Usage


myStream.attachVideo(source | null [, snapShotMilliseconds])
Parameters


source The source of the video transmission. Valid values are a Camera object (which starts capturing video) and null. If you pass null, Flash stops capturing video, and any additional parameters you send are ignored.

snapShotMilliseconds An optional integer that specifies whether the video stream is continuous, a single frame, or a series of single frames used to create time-lapse photography.

If this argument is omitted, Flash captures all video until you issue myStream.attachVideo(null).

If you pass 0, Flash captures only a single video frame. Use this value to transmit "snapshots" within a preexisting stream.

Note: Flash interprets invalid, negative, or nonnumeric arguments as 0.

If you pass a positive number, Flash captures a single video frame and then appends a pause of length snapShotMilliseconds as a "trailer" on the snapshot. Use this value to create time-lapse photography effects (see the description below.)


Returns


Nothing.

Description


Method; starts capturing video from the specified source, or stops capturing if source is null. This method is available only to the publisher of the specified stream.

After attaching the video source, you must call NetStream.publish to actually begin transmitting. Subscribers who want to display the video must call the NetStream.play and Video.attachVideo methods to display the video on the Stage.

You can use snapShotMilliseconds to send a single snapshot (by providing a value of 0) or a series of snapshots—in effect, time-lapse footage—by providing a positive number that adds a trailer of the specified number of milliseconds to the video feed. The trailer extends the length of time the video message is displayed. By repeatedly calling attachVideo with a positive value for snapShotMilliseconds, the snapshot/trailer/snapshot/trailer... sequence creates time-lapse footage. For example, you could capture one frame per day and append it to a video file. When a subscriber plays back the file, each frame remains onscreen for the specified number of milliseconds and then the next frame is displayed.

The snapShotMilliseconds parameter serves a different purpose from the fps parameter you can set with Camera.setMode. When you specify the snapShotMilliseconds, you are controlling how much time elapses during playback between recorded frames. When you specify the fps using Camera.setMode, you are controlling how much time elapses during recording and playback between recorded frames.

For example, suppose you want to take a snapshot every five minutes for a total of 100 snapshots. You can do this in two different ways:

You can issue a NetStream.attachVideo(source,500) command 100 times, once every five minutes. This takes 500 minutes to record, but the resulting file will play back in 50 seconds (100 frames with 500 milliseconds between frames).

You can issue a Camera.setMode command with an fps value of 1/300 (1 per 300 seconds, or 1 each 5 minutes), and then issue a NetStream.attachVideo(source) command, letting the camera capture continuously for 500 minutes. The resulting file will play back in 500 minutes—the same length of time that it took to record—with each frame being displayed for 5 minutes.


Both techniques capture the same 500 frames, and both approaches are useful; which approach to use depends primarily on your playback requirements. For example, in the second case, you could be recording audio the entire time. Also, both files would be approximately the same size.

Example


The following function publishes a stream containing the camera output.

function pubLive()
{

// Create a new source stream.
srcStream = new NetStream(connection);

// Attach the camera activity to the source stream. This
// call causes a warning message to show which service is
// requesting access. It also gives the user the option of
// not sending the camera activity to the server.
srcStream.attachVideo(myCam);

// Get the stream name from the user input.
mySubj=subject;

// Assuming the user named the stream 'webCamStream',
// publish the live camera activity as 'webCamStream'.
srcStream.publish(mySubj, "live");
}
------------------------------------------
Это из Хелпа к FLASH COMMUNICATION SERVER///, так что ответ типа "Stream Video Cherez flash prognati ne lizy."(я понял "ne lizy" как "nel'zia"), здесь не канает %). И по сему влпрос адресован не тем кто НЕ ЗНАЕТ, как впихать во фляшу Streaning Video, а тем кто ЗНАЕТ (я догадываюсь даже кто бы это мог быть).
__________________
Leon Danilov
-----------------------------
leon@ewave.co.il
Flash designer and programmer
-----------------------------
Ewave LTD, Internet Solutions
www.ewave.co.il

Старый 23.09.2002, 06:42
Fouly вне форума Посмотреть профиль Отправить личное сообщение для Fouly Найти все сообщения от Fouly
  № 4  
Fouly

Регистрация: Dec 1999
Сообщений: 258
Не знаю о каком Флэше идет речь в этой документации, но в том флэше который стоит у меня и распространяется через macromedia.com нету метода attachVideo

Старый 23.09.2002, 11:49
Alien Life Form вне форума Посмотреть профиль Отправить личное сообщение для Alien Life Form Найти все сообщения от Alien Life Form
  № 5  
Alien Life Form
 
Аватар для Alien Life Form

Регистрация: Mar 2002
Адрес: Украина, Харьков
Сообщений: 157
Отправить сообщение для Alien Life Form с помощью ICQ
2 Fouly

Скачай обновленный хелп для МХ с макромедии (там подобавлялось кое-что )

Еще посмотри тут .
__________________
Ops...

Старый 23.09.2002, 12:01
Fouly вне форума Посмотреть профиль Отправить личное сообщение для Fouly Найти все сообщения от Fouly
  № 6  
Fouly

Регистрация: Dec 1999
Сообщений: 258
О, спасибо

Старый 24.09.2002, 01:34
specweb вне форума Посмотреть профиль Отправить личное сообщение для specweb Посетить домашнюю страницу specweb Найти все сообщения от specweb
  № 7  
specweb
 
Аватар для specweb

Регистрация: Mar 2002
Адрес: USA, New York
Сообщений: 433
Отправить сообщение для specweb с помощью ICQ Отправить сообщение для specweb с помощью AIM Отправить сообщение для specweb с помощью Yahoo
Da esli bilo bi mojno Pokazivati live video cherez Flash .
Ya bi tebe obesnil .
No a tak kak ato ne vozmojno. to ya ato tebe obesniti ne kak ne mogu.
Potomuchto primoi afir vo flashe proigrivati ne vozmojno.
__________________
. . . . . .22200040W. . . . . .

Старый 24.09.2002, 15:29
countZero вне форума Посмотреть профиль Отправить личное сообщение для countZero Посетить домашнюю страницу countZero Найти все сообщения от countZero
  № 8  
countZero

Регистрация: Nov 2000
Адрес: Tel Aviv
Сообщений: 14
Отправить сообщение для countZero с помощью ICQ
По умолчанию Вожможность невозможного

2specweb
re:--------------------------
Da esli bilo bi mojno Pokazivati live video cherez Flash .
Ya bi tebe obesnil .
No a tak kak ato ne vozmojno. to ya ato tebe obesniti ne kak ne mogu.
Potomuchto primoi afir vo flashe proigrivati ne vozmojno.
-----------------------------

Именно этим я сейчас и занимаюсь... Как только будет готово, скину тебе линк
__________________
Leon Danilov
-----------------------------
leon@ewave.co.il
Flash designer and programmer
-----------------------------
Ewave LTD, Internet Solutions
www.ewave.co.il

Старый 24.09.2002, 16:00
Alien Life Form вне форума Посмотреть профиль Отправить личное сообщение для Alien Life Form Найти все сообщения от Alien Life Form
  № 9  
Alien Life Form
 
Аватар для Alien Life Form

Регистрация: Mar 2002
Адрес: Украина, Харьков
Сообщений: 157
Отправить сообщение для Alien Life Form с помощью ICQ
2 countZero

Если не трудно, то поделишься опытом, как сделаешь. Ок?
__________________
Ops...

Создать новую тему   Часовой пояс GMT +4, время: 07:29.
Быстрый переход
  « Предыдущая тема | Следующая тема »  
Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


 


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


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