Build Your Own Video Community With Lighttpd And FlowPlayer. Part 8.




VIDEO

Важная часть вызова FlowPlayer – это <script src=»/flowplayer/example/flowplayer-3.1.4.min.js»></script> (который ссылается на скрипт flowplayer-3.1.4.min.js в каталоге /var/www/flowplayer/example) в секции <head></head> и следующие две части в секции <body></body>:

<a

href=»<?php printf(‘%s%s/%s%s’, $uri_prefix, $m, $t_hex, $f, $f); ?>»

style=»display:block;width:320px;height:256px;»

id=»player»>

</a>

(Самая важная настройка – это параметр href (он устанавливается с помощью PHP в нашем скрипте), который указывает путь к файлу FLV. В параметрах стиля мы можем указать высоту и ширину нашего видеоплеера.)

и:

<script language=»JavaScript»>

flowplayer(«player», «/flowplayer/flowplayer-3.1.5.swf»);

</script>

(Здесь мы указываем путь к .swf файлам.)

Эта конфигурация FlowPlayer взята из http://flowplayer.org/demos/installation/index.html.

Чтобы рассмотреть другие методы вызова FlowPlayer и как его вызвать с особыми параметрами, посмотрите на примеры по адресу http://flowplayer.org/demos/index.html.

Теперь самое время посмотреть, что же мы накуролесили. Укажите в вашем браузере адрес http://192.168.0.100/flowplayertest.php или http://server1.example.com/flowplayertest.php, и видео должно начать проигрываться (включая звук):

1

.

.

.

.

.

.

.

.

.

.

.

.

А вот как выглядит естественный полноэкранный режим Flash 9:

2

.

.

.

.

.

.

.

.

.

.

.

8 Ссылки

Lighttpd: http://www.lighttpd.net/

mod_flv_streaming: http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd

mod_secdownload: http://trac.lighttpd.net/trac/wiki/Docs%3AModSecDownload

FlowPlayer: http://flowplayer.org/

ffmpeg: http://ffmpeg.mplayerhq.hu/

flvtool2: http://rubyforge.org/projects/flvtool2/

PHP: http://www.php.net/

Debian: http://www.debian.org/

.

Оригинал:  http://www.howtoforge.com/server-monitoring-with-munin-and-monit-on-debian-lenny

Popularity: 1%



Этот материал находится на сайте http://compiling.ru
__________________________________________



Похожие посты:


  • Build Your Own Video Community With Lighttpd And FlowPlayer. Part 6.
  • Build Your Own Video Community With Lighttpd And FlowPlayer. Part 7.
  • Build Your Own Video Community With Lighttpd And FlowPlayer (Debian Lenny)
  • Build Your Own Video Community With Lighttpd And FlowPlayer. Part 3.
  • Build Your Own Video Community With Lighttpd And FlowPlayer. Part 5.



  • Опубликовано 11 Мар 2010 в 13:56. В рубриках: Solutions. Вы можете следить за ответами к этой записи через RSS 2.0. Вы можете оставить отзыв или трекбек со своего сайта.

    Оставьте свой отзыв

    Партнёры:


    www.vpnssl.ru

    Создание vpn подключения - от 1'950р.

    Есть вопрос! Оставь свой голос!

    Question:

    Что нужно админу для счастья?

    View Results

    Loading ... Loading ...




    Most Popular Posts



    Supported:

  • Автомобили почти бесплатно: вскрытие автомобилей круглосуточно. Любишь автомобили?


  • free counters