Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" ?>
- <Server version="8">
- <Name>OvenMediaEngine</Name>
- <!-- Host type (origin/edge) -->
- <Type>origin</Type>
- <!-- Specify IP address to bind (* means all IPs) -->
- <IP>*</IP>
- <!-- Settings for the ports to bind -->
- <Bind>
- <!-- Enable this configuration if you want to use API Server -->
- <!--
- <Managers>
- <API>
- <Port>48081</Port>
- </API>
- </Managers>
- -->
- <Providers>
- <RTMP>
- <Port>1935</Port>
- </RTMP>
- <MPEGTS>
- <!--
- Listen on port 4000~4005
- This is just a demonstration to show that you can configure the port in several ways
- -->
- <Port>4000-4004,4005/udp</Port>
- </MPEGTS>
- </Providers>
- <Publishers>
- <OVT>
- <Port>9000</Port>
- </OVT>
- <HLS>
- <Port>8080</Port>
- <!-- If you want to use TLS, specify the TLS port -->
- <!-- <TLSPort>443</TLSPort> -->
- </HLS>
- <DASH>
- <Port>8081</Port>
- <!-- If you want to use TLS, specify the TLS port -->
- <!-- <TLSPort>443</TLSPort> -->
- </DASH>
- <WebRTC>
- <Signalling>
- <Port>3334</Port>
- <TLSPort>3333</TLSPort>
- </Signalling>
- <IceCandidates>
- <!-- <TcpRelay>*:3478</TcpRelay> -->
- <IceCandidate>*:10000-10005/udp</IceCandidate>
- </IceCandidates>
- </WebRTC>
- </Publishers>
- </Bind>
- <!-- P2P works only in WebRTC -->
- <!--
- <P2P>
- <MaxClientPeersPerHostPeer>2</MaxClientPeersPerHostPeer>
- </P2P>
- -->
- <!--
- 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.
- -->
- <!--
- <Managers>
- <Host>
- <Names>
- <Name>*</Name>
- </Names>
- <TLS>
- <CertPath>path/to/file.crt</CertPath>
- <KeyPath>path/to/file.key</KeyPath>
- <ChainCertPath>path/to/file.crt</ChainCertPath>
- </TLS>
- </Host>
- <API>
- <AccessToken>ome-access-token</AccessToken>
- </API>
- </Managers>
- -->
- <VirtualHosts>
- <!-- You can use wildcard like this to include multiple XMLs -->
- <VirtualHost include="VHost*.xml" />
- <VirtualHost>
- <Name>default</Name>
- <!-- Settings for multi ip/domain and TLS -->
- <Host>
- <Names>
- <!-- Host names
- <Name>stream1.airensoft.com</Name>
- <Name>stream2.airensoft.com</Name>
- <Name>*.sub.airensoft.com</Name>
- <Name>192.168.0.1</Name>
- -->
- <Name>{DOMAIN}</Name>
- </Names>
- <TLS>
- <CertPath>/etc/ssl/certs/{DOMAIN}.crt</CertPath>
- <KeyPath>/etc/ssl/certs/{DOMAIN}.key</KeyPath>
- <!-- <ChainCertPath>/etc/ssl/certs/{DOMAIN}.ca-bundle</ChainCertPath> -->
- </TLS>
- </Host>
- <!-- Refer https://airensoft.gitbook.io/ovenmediaengine/signedpolicy
- <SignedPolicy>
- <PolicyQueryKeyName>policy</PolicyQueryKeyName>
- <SignatureQueryKeyName>signature</SignatureQueryKeyName>
- <SecretKey>aKq#1kj</SecretKey>
- <Enables>
- <Providers>rtmp</Providers>
- <Publishers>webrtc,hls,dash,lldash</Publishers>
- </Enables>
- </SignedPolicy>
- -->
- <!--
- <Origins>
- <Origin>
- <Location>/app/stream</Location>
- <Pass>
- <Scheme>ovt</Scheme>
- <Urls><Url>origin.com:9000/app/stream_720p</Url></Urls>
- </Pass>
- </Origin>
- <Origin>
- <Location>/app/</Location>
- <Pass>
- <Scheme>ovt</Scheme>
- <Urls><Url>origin.com:9000/app/</Url></Urls>
- </Pass>
- </Origin>
- <Origin>
- <Location>/edge/</Location>
- <Pass>
- <Scheme>ovt</Scheme>
- <Urls><Url>origin.com:9000/app/</Url></Urls>
- </Pass>
- </Origin>
- </Origins>
- -->
- <!-- Settings for applications -->
- <Applications>
- <Application>
- <Name>app</Name>
- <!-- Application type (live/vod) -->
- <Type>live</Type>
- <!--
- <OutputProfiles>
- <OutputProfile>
- <Name>bypass_stream</Name>
- <OutputStreamName>${OriginStreamName}</OutputStreamName>
- <Encodes>
- <Audio>
- <Bypass>true</Bypass>
- </Audio>
- <Video>
- <Bypass>true</Bypass>
- </Video>
- <Audio>
- <Codec>opus</Codec>
- <Bitrate>128000</Bitrate>
- <Samplerate>48000</Samplerate>
- <Channel>2</Channel>
- </Audio>
- <Video>
- <Codec>vp8</Codec>
- <Bitrate>1024000</Bitrate>
- <Framerate>30</Framerate>
- <Width>1280</Width>
- <Height>720</Height>
- </Video>
- </Encodes>
- </OutputProfile>
- </OutputProfiles>
- -->
- <OutputProfiles>
- <OutputProfile>
- <Name>bypass_stream</Name>
- <OutputStreamName>${OriginStreamName}</OutputStreamName>
- <Encodes>
- <Audio>
- <Bypass>true</Bypass>
- </Audio>
- <Video>
- <Bypass>true</Bypass>
- </Video>
- <Video>
- <Codec>vp8</Codec>
- <Width>1280</Width>
- <Height>720</Height>
- <Bitrate>2000000</Bitrate>
- <Framerate>30.0</Framerate>
- </Video>
- <Audio>
- <Codec>opus</Codec>
- <Bitrate>128000</Bitrate>
- <Samplerate>48000</Samplerate>
- <Channel>2</Channel>
- </Audio>
- </Encodes>
- </OutputProfile>
- </OutputProfiles>
- <Providers>
- <OVT />
- <RTMP />
- <MPEGTS>
- <StreamMap>
- <!--
- 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
- -->
- <Stream>
- <Name>stream_${Port}</Name>
- <Port>4000,4001-4004</Port>
- </Stream>
- <Stream>
- <Name>stream_4005</Name>
- <Port>4005</Port>
- </Stream>
- </StreamMap>
- </MPEGTS>
- <RTSPPull />
- </Providers>
- <Publishers>
- <SessionLoadBalancingThreadCount>8</SessionLoadBalancingThreadCount>
- <OVT />
- <WebRTC>
- <Timeout>30000</Timeout>
- </WebRTC>
- <HLS>
- <SegmentDuration>5</SegmentDuration>
- <SegmentCount>3</SegmentCount>
- <CrossDomains>
- <Url>*</Url>
- <Url>https://{DOMAIN}</Url>
- <Url>https://demo.ovenplayer.com</Url>
- </CrossDomains>
- </HLS>
- <DASH>
- <SegmentDuration>5</SegmentDuration>
- <SegmentCount>3</SegmentCount>
- <CrossDomains>
- <Url>*</Url>
- <Url>https://{DOMAIN}</Url>
- <Url>https://demo.ovenplayer.com</Url>
- </CrossDomains>
- </DASH>
- <LLDASH>
- <SegmentDuration>5</SegmentDuration>
- <CrossDomains>
- <Url>*</Url>
- <Url>https://{DOMAIN}</Url>
- <Url>https://demo.ovenplayer.com</Url>
- </CrossDomains>
- </LLDASH>
- </Publishers>
- </Application>
- </Applications>
- </VirtualHost>
- </VirtualHosts>
- </Server>
Add Comment
Please, Sign In to add comment