ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.24k stars 622 forks source link

REST Call to End Current MP4 VOD and Start a New One: #6664

Open mekya opened 5 days ago

mekya commented 5 days ago

Is your feature request related to a problem? Please describe. We need a REST call that can be used to end the current MP4 VOD and start a new one immediately. This functionality is crucial for situations where an MP4 VOD is needed on-demand, without having to interrupt the live stream or wait for the maximum duration to be reached.

Describe the solution you'd like Solution: Use the same plugin as here #6663 . Provide a REST API and when it’s called, it will return the MP4 file for that moment, let’s say 0 - 45 mins. It will be recorded in the directory, has the information for the REST API for the first issue. It will not have any impact for the issue #6663

Update: Use the current HLS “startTime” and “endTime” option to get the HLS for the specified interval. Convert it to MP4 and record it database that meets the requirement in the first issue.