Thursday, November 8, 2012

VOD over HTTP

In recent version of nginx-rtmp-module I have added support for remote video playback over HTTP. The syntax is similar to local playback with the only exception. Play directive argument should start with http://. Both flv & mp4 formats are supported.


play http://myserver.com/vod;


The feature has a limitation. Video file is completely downloaded before playing which might introduce a lag. To cache file locally use nginx http proxy engine and set up playing from localhost.

The new feature is described in wiki directives page.

10 comments:

  1. Dear Arut, is there a manual to fast test your app?
    Can you recomment a Linux build?
    Ubuntu 12.04 x64 will fit?
    What are options to make install and try to use rtmp throw flash publish?
    Does your product support session auth with backend server?

    ReplyDelete
  2. > on_play Sets HTTP play callback
    is there a way to force module to reauth playback i.e. each 30 sec.?

    ReplyDelete
  3. There's no complete manual, only directive list https://github.com/arut/nginx-rtmp-module/wiki/Directives and usage examples at github.
    Ubuntu 12.04 x64 is ok.
    Session should be implemented by yourself. The module passes all arguments to on_play and on_publish notifiers where you can implement session auth as you wish.
    Take a look at examples in /test directory.

    ReplyDelete
  4. Роман здравствуйте , возможно ли через Nginx-rtmp реализовать балансировку потоков. Чтобы модуль перенаправлял на зеркальные потоки пользователей которые перегружают сервер ?

    ReplyDelete
  5. пока нет. но я подумаю над этим

    ReplyDelete
  6. Hello Rarut!
    I like your module actually i love how it works with the scripting style.
    I have one problem though :)))
    I cant find the inginx source directory only the configuration ones, i would appreciate it if you would give me this piece of info :))
    Thanks

    ReplyDelete
  7. You obviously need to download nginx source from nginx.org: http://nginx.org/en/download.html

    ReplyDelete
  8. Hello Rarut,

    is there any solution that setting hls up with over play vod ?

    thank you!

    ReplyDelete
  9. I have a solution, I'll post more details later

    ReplyDelete
  10. Ok I am willing follow up for that

    ReplyDelete