Answer for RTSP authentification
Written by goxy on . Posted in
That part is uncommitted, if I change to wrong users.lua path I got error.
This is my all config.lua:
configuration=
{
daemon=false,
instancesCount=-1,
pathSeparator="/",
logAppenders=
{
{
name="console appender",
type="coloredConsole",
level=6
},
{
name="file appender",
type="file",
level=6,
fileName="/var/log/evostreamms/evostreamms",
newLineCharacters="n",
fileHistorySize=100,
fileLength=1024*1024,
singleLine=true
},
},
applications=
{
rootDirectory="./",
{
appDir="./",
name="evostreamms",
description="EVOSTREAM MEDIA SERVER",
protocol="dynamiclinklibrary",
default=true,
pushPullPersistenceFile="/var/evostreamms/xml/pushPullSetup.xml",
authPersistenceFile="/var/evostreamms/xml/auth.xml",
connectionsLimitPersistenceFile="/var/evostreamms/xml/connlimits.xml",
bandwidthLimitPersistenceFile="/var/evostreamms/xml/bandwidthlimits.xml",
ingestPointsPersistenceFile="/var/evostreamms/xml/ingestpoints.xml",
streamsExpireTimer=10,
rtcpDetectionInterval=15,
hasStreamAliases=false,
hasIngestPoints=false,
validateHandshake=false,
aliases={"er", "live", "vod"},
maxRtmpOutBuffer=512*1024,
mediaStorage = {
{
description="Default media storage",
mediaFolder="/var/evostreamms/media",
},
–[[
— the following is an example and contains all
— available properties along with their default
— values(except paths, of course)
sample={
description="Storage example",
mediaFolder="/some/media/folder",
metaFolder="/fast/discardable/separate/folder",
statsFolder="/fast/discardable/separate/folder",
enableStats=false,
clientSideBuffer=15,
keyframeSeek=true,
seekGranularity=0.1,
externalSeekGenerator=false,
}
]]–
},
acceptors=
{
{
ip="0.0.0.0",
port=65501,
protocol="inboundRtmp"
},
{
ip="0.0.0.0",
port=5501,
protocol="inboundRtsp",
}
},
authentication=
{
rtsp=
{
usersFile="/etc/evostreamms/users.lua",
–authenticatePlay=true,
}
},
transcoder = {
scriptPath="/usr/bin/emsTranscoder.sh",
srcUriPrefix="rtsp://localhost:5544/",
dstUriPrefix="-f flv tcp://localhost:6666/"
},
},
}
}