lundi 5 février 2018

Nginx: Use IF statement into RTMP module

Is there some way to condition application usage inside some rtmp application? For example, I need to do something like

application live {
      live on;
      if ($name ~"tv") {
            push rtmp://localhost/aux/;
      }
}

application aux {
   live on;
   hls on;
  ***********
}

Some guide, suggestion or alternative will be welcome! Thanks

Aucun commentaire:

Enregistrer un commentaire