io.antmedia.webresource.StreamWebRoot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ant-media-server Show documentation
Show all versions of ant-media-server Show documentation
Ant Media Server supports RTMP, RTSP, MP4, HLS, WebRTC, Adaptive Streaming, etc.
package io.antmedia.webresource;
import org.apache.catalina.WebResource;
import org.apache.catalina.webresources.StandardRoot;
public class StreamWebRoot extends StandardRoot {
@Override
public WebResource getResource(String path) {
if (path.endsWith(".m3u8") || path.endsWith(".ts")) {
return getResourceInternal(path, true);
}
else {
return super.getResource(path);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy