# red5-hls-plugin
**Repository Path**: endlesshh/red5-hls-plugin
## Basic Information
- **Project Name**: red5-hls-plugin
- **Description**: red5支持hls的插件,用了一下jvm报错,不知道原因,所以目前不能用,好几年不更新了
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-08-14
- **Last Updated**: 2022-05-24
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
MPEG-TS Plug-in
By: Paul Gregoire
The segmenter service must be configured in your red5-web.xml where the mpeg-ts streaming will be used.
The segment directory property may be configured with a full path to where your segments will be written if you are using
file-based segments. If the "%s" is present when this is parsed, it will be replaced with your applications directory.
The web.xml for your application must also have the following servlets defined, which will provide the requested playlist and segments.
Serves an HTTP streaming playlist
PlayList
PlayList
org.red5.stream.http.servlet.PlayList
minimumSegmentCount
3
startStreamOnRequest
true
Serves a segment
TransportSegment
TransportSegment
org.red5.stream.http.servlet.TransportSegment
PlayList
*.m3u8
TransportSegment
*.ts
Lastly, if the playlist and segments are not defined in the primary web.xml for the server they will need to be defined in your
application web.xml as follows.
m3u8
application/x-mpegURL
ts
video/MP2T
Special thanks to Infrared5 Inc. for donating the initial code and for BigMarker sponsoring updates.
Notes:
Cupertino / Apple HLS is very particular with encoding.
* Minimum of 10 second of chunk (although 2 and 4 seconds have been successfully tested)
* Keyframe interval of 2 (should be no larger than the segment size)
* Use Baseline 3.0