<?xml version="1.0" encoding="UTF-8"?>
<Name>OvenMediaEngine</Name>
<!-- Host type (origin/edge) -->
<!-- Specify IP address to bind (* means all IPs) -->
To get the public IP address(mapped address of stun) of the local server.
This is useful when OME cannot obtain a public IP from an interface, such as AWS or docker environment.
If this is successful, you can use ${PublicIP} in your settings.
<StunServer>stun.l.google.com:19302</StunServer>
<!-- Settings for the ports to bind -->
<!-- Enable this configuration if you want to use API Server -->
<WorkerCount>1</WorkerCount>
<!-- <WorkerCount>1</WorkerCount> -->
<!-- <WorkerCount>1</WorkerCount> -->
This is just a demonstration to show that you can configure the port in several ways
<Port>4000-4004,4005/udp</Port>
<!-- If you want to use TLS, specify the TLS port -->
<!-- <TLSPort>3334</TLSPort> -->
<!-- <WorkerCount>4</WorkerCount> -->
If you want to stream WebRTC over TCP, specify IP:Port for TURN server.
This uses the TURN protocol, which delivers the stream from the built-in TURN server to the player's TURN client over TCP.
For detailed information, refer https://airensoft.gitbook.io/ovenmediaengine/v/0.11.1/streaming/webrtc-publishing#webrtc-over-tcp
<TcpRelay>*:3478</TcpRelay>
<IceCandidate>*:10000-10005/udp</IceCandidate>
Sets the number of worker threads to use in TcpRelay
<TcpRelayWorkerCount>4</TcpRelayWorkerCount>
<!-- <WorkerCount>1</WorkerCount> -->
<!-- If you want to use TLS, specify the TLS port -->
<!-- <TLSPort>443</TLSPort> -->
<!-- <WorkerCount>4</WorkerCount> -->
<!-- If you want to use TLS, specify the TLS port -->
<!-- <TLSPort>443</TLSPort> -->
<!-- <WorkerCount>4</WorkerCount> -->
<!-- If you want to use TLS, specify the TLS port -->
<!-- <TLSPort>443</TLSPort> -->
<!-- <WorkerCount>4</WorkerCount> -->
<!-- If you want to use TLS, specify the TLS port -->
<!-- <TLSPort>3334</TLSPort> -->
<!-- <WorkerCount>4</WorkerCount> -->
If you want to stream WebRTC over TCP, specify IP:Port for TURN server.
This uses the TURN protocol, which delivers the stream from the built-in TURN server to the player's TURN client over TCP.
For detailed information, refer https://airensoft.gitbook.io/ovenmediaengine/v/0.11.1/streaming/webrtc-publishing#webrtc-over-tcp
<TcpRelay>*:3478</TcpRelay>
<IceCandidate>*:10000-10005/udp</IceCandidate>
Sets the number of worker threads to use in TcpRelay
<TcpRelayWorkerCount>4</TcpRelayWorkerCount>
<!-- P2P works only in WebRTC -->
<MaxClientPeersPerHostPeer>2</MaxClientPeersPerHostPeer>
Enable this configuration if you want to use API Server
<AccessToken> is a token for authentication, and when you invoke the API, you must put "Basic base64encode(<AccessToken>)" in the "Authorization" header of HTTP request.
For example, if you set <AccessToken> to "ome-access-token", you must set "Basic b21lLWFjY2Vzcy10b2tlbg==" in the "Authorization" header.
<CertPath>path/to/file.crt</CertPath>
<KeyPath>path/to/file.key</KeyPath>
<ChainCertPath>path/to/file.crt</ChainCertPath>
<AccessToken>ome-access-token</AccessToken>
<!-- You can use wildcard like this to include multiple XMLs -->
<VirtualHost include="VHost*.xml" />
<!-- Settings for multi ip/domain and TLS -->
<Name>stream1.airensoft.com</Name>
<Name>stream2.airensoft.com</Name>
<Name>*.sub.airensoft.com</Name>
<CertPath>path/to/file.crt</CertPath>
<KeyPath>path/to/file.key</KeyPath>
<ChainCertPath>path/to/file.crt</ChainCertPath>
<!-- Refer https://airensoft.gitbook.io/ovenmediaengine/signedpolicy
<PolicyQueryKeyName>policy</PolicyQueryKeyName>
<SignatureQueryKeyName>signature</SignatureQueryKeyName>
<SecretKey>aKq#1kj</SecretKey>
<Providers>rtmp</Providers>
<Publishers>webrtc,hls,dash,lldash</Publishers>
<Location>/app/stream</Location>
<Urls><Url>origin.com:9000/app/stream_720p</Url></Urls>
<Location>/app/</Location>
<Urls><Url>origin.com:9000/app/</Url></Urls>
<Location>/edge/</Location>
<Urls><Url>origin.com:9000/app/</Url></Urls>
<!-- Settings for applications -->
<!-- Application type (live/vod) -->
<Name>bypass_stream</Name>
<OutputStreamName>${OriginStreamName}</OutputStreamName>
<Bitrate>128000</Bitrate>
<Samplerate>48000</Samplerate>
<Bitrate>1024000</Bitrate>
<Framerate>30</Framerate>
<Name>default_stream</Name>
<OutputStreamName>${OriginStreamName}_preview</OutputStreamName>
Set the stream name of the client connected to the port to "stream_${Port}"
For example, if a client connets to port 4000, OME creates a "stream_4000" stream
<Name>stream_${Port}</Name>
<Port>4000,4001-4004</Port>
<AppWorkerCount>1</AppWorkerCount>
<StreamWorkerCount>8</StreamWorkerCount>
<SegmentDuration>5</SegmentDuration>
<SegmentCount>3</SegmentCount>
<SegmentDuration>5</SegmentDuration>
<SegmentCount>3</SegmentCount>
<SegmentDuration>5</SegmentDuration>