/

Stream Manager Configuration


The Stream Manager needs to have CORS configured to allow the Chrome process created by the Node Checker server to be able to subscribe to the live streams. The Chrome process will load the subscribe page from the local domain http://127.0.0.1:8001/home. CORS can be configured in the Stream Manager instances by modifying {Red5-Pro}/webapps/streammanager/WEB-INF/web.xml and adding the following lines:

<!-- CORS filter -->
<filter>
    <filter-name>CORS</filter-name>
    <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
    <async-supported>true</async-supported>
    <init-param>
        <param-name>cors.allowOrigin</param-name>
        <param-value>https://<streammanagerurl>, http://<nodecheckerip>:8001, http://127.0.0.1:8001</param-value>
    </init-param>
    <init-param>
        <param-name>cors.allowSubdomains</param-name>
        <param-value>true</param-value>
    </init-param>
    <init-param>
        <param-name>cors.supportedMethods</param-name>
        <param-value>GET, POST, DELETE, HEAD</param-value>
    </init-param>
    <init-param>
        <param-name>cors.maxAge</param-name>
        <param-value>3600</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>CORS</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>