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
554 B
32 lines
554 B
import * as mediaserver from "./server";
|
|
import * as ircd from "./ircd";
|
|
|
|
function boot(): void{
|
|
const mediaconfig: any = {
|
|
rtmp: {
|
|
port: 1935,
|
|
chunk_size: 60000,
|
|
gop_cache: true,
|
|
ping: 30,
|
|
ping_timeout: 60
|
|
},
|
|
http: {
|
|
port:8000,
|
|
allow_origin: '*',
|
|
mediaroot: './site'
|
|
},
|
|
trans: {
|
|
ffmpeg: '/usr/bin/ffmpeg',
|
|
tasks: [
|
|
{
|
|
app: 'live',
|
|
hls: 'true',
|
|
hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]'
|
|
}
|
|
]
|
|
}
|
|
};
|
|
mediaserver.boot(mediaconfig);
|
|
ircd.boot();
|
|
}
|
|
export { boot }; |