File: appselector.lua

package info (click to toggle)
crtmpserver 1.0~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,336 kB
  • sloc: cpp: 56,354; sh: 411; makefile: 21
file content (53 lines) | stat: -rw-r--r-- 1,642 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
application =
{
	-- The name of the application. It is mandatory and must be unique
	name = "appselector",
	-- Short description of the application. Optional
	description = "Application for selecting the rest of the applications",
	-- The type of the application. Possible values are:
	-- dynamiclinklibrary - the application is a shared library
	protocol = "dynamiclinklibrary",
	-- the complete path to the library. This is optional. If not provided,
	-- the server will try to load the library from here
	-- <rootDirectory>/<name>/lib<name>.{so|dll|dylib}
	-- library="/some/path/to/some/shared/library.so"

	-- Tells the server to validate the clien's handshake before going further.
	-- It is optional, defaulted to true
	validateHandshake = true,
	-- this is the folder from where the current application gets it's content.
	-- It is optional. If not specified, it will be defaulted to:
	-- <rootDirectory>/<name>/mediaFolder
	-- mediaFolder="/some/directory/where/media/files/are/stored"
	-- the application will also be known by that names. It is optional
	--aliases=
	--{
	--	"simpleLive",
	--	"vod",
	--	"live",
	--},
	-- This flag designates the default application. The default application
	-- is responsable of analyzing the "connect" request and distribute
	-- the future connection to the correct application.
	default = true,
	acceptors =
	{
		{
			ip = "0.0.0.0",
			port = 1935,
			protocol = "inboundRtmp"
		},
		{
			ip = "0.0.0.0",
			port = 8080,
			protocol = "inboundRtmpt"
		},
		--[[{
			ip = "0.0.0.0",
			port = 8081,
			protocol = "inboundRtmps",
			sslKey = "server.key",
			sslCert = "server.crt"
		},]]--
	}
}