Video conf based on SimpleWebRTC https://vroom.fws.fr/documentation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
731 B

#!/usr/bin/env perl
use strict;
use warnings;
use Config::Simple;
use File::Basename;
my $dir=dirname($0);
chdir $dir . '/..';
my $cfg = new Config::Simple();
$cfg->read('conf/settings.ini');
our $config = $cfg->vars();
$config->{'daemon.listen_ip'} ||= '127.0.0.1';
$config->{'daemon.listen_port'} ||= '8090';
$config->{'daemon.backend'} ||= 'hypnotoad';
$ENV{'PERL5LIB'} = 'lib';
if ($config->{'daemon.backend'} eq 'morbo'){
exec ('/usr/bin/morbo',
'-l', 'http://' . $config->{'daemon.listen_ip'} . ':' . $config->{'daemon.listen_port'},
'-w', 'conf/settings.ini',
'-w', 'lib',
'-w', 'templates',
'-v', 'vroom.pl');
}
else{
exec ('/usr/bin/hypnotoad', '-f', 'vroom.pl');
}