eduard-mitrea

crtmpsever.lua rtmpd795 SIAM

Aug 23rd, 2013
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.34 KB | None | 0 0
  1.    
  2.  
  3.     configuration=
  4.     {
  5.             daemon=false,
  6.             pathSeparator="/",
  7.      
  8.             logAppenders=
  9.             {
  10.                     {
  11.                             name="console appender",
  12.                             type="coloredConsole",
  13.                             level=6
  14.                     },
  15.                     {
  16.                             name="file appender",
  17.                             type="file",
  18.                             level=6,
  19.                             fileName="/var/log/crtmpserver/rtmpd-795",
  20.                             fileHistorySize=10,
  21.                             fileLength=1024*4096,
  22.                             singleLine=false
  23.                     }
  24.             },
  25.      
  26.             applications=
  27.             {
  28.                     rootDirectory="applications",
  29.      
  30.      
  31.                     {
  32.                             name="appselector",
  33.                             description="Application for selecting the rest of the applications",
  34.                             protocol="dynamiclinklibrary",
  35.                             validateHandshake=true,
  36.                             default=true,
  37.                             acceptors =
  38.                             {
  39.                                     {
  40.                                             ip="0.0.0.0",
  41.                                             port=1935,
  42.                                             protocol="inboundRtmp"
  43.                                     },
  44.                             }
  45.                     },
  46.                     {
  47.                             description="FLV Playback Sample",
  48.                             name="flvplayback",
  49.                             protocol="dynamiclinklibrary",
  50.                             mediaFolder="/var/rtmpd795/media",
  51.                             clientSideBuffer=16,
  52.                             keyframeSeek=true,
  53.                             seekGranularity=1.5,
  54.                             renamebadFiles=true,
  55.                             aliases=
  56.                             {
  57.                                     "maya", -- change it as you desire but do not forget to change it into connecting schema as well
  58.                             },
  59.                             acceptors =
  60.                             {
  61.                             },
  62.                             externalStreams =
  63.                             {
  64.                             },
  65.                             validateHandshake=true,
  66.                             enableCheckBandwidth=true,
  67.                             maxConnections=300,
  68.                             authentication=
  69.                             {
  70.                                     rtmp={
  71.                                             type="adobe",
  72.                                             encoderAgents=
  73.                                             {
  74.                                                     "FMLE/3.0 (compatible; FMSc/1.0)",
  75.                                                     "My user agent",
  76.                                             },
  77.                                             usersFile="/var/rtmpd795/users.lua"
  78.                                     },
  79.                             },
  80.                     },
  81.                     --#INSERTION_MARKER# DO NOT REMOVE THIS. USED BY appscaffold SCRIPT.
  82.             }
  83.     }
Advertisement
Add Comment
Please, Sign In to add comment