'Does Ant Media Server has live rewind feature?

Do the RTMP options support live rewind? (especially in the newest Ant Media Server version) I need to be able to rewind live to take notes.



Solution 1:[1]

Ant Media Server(2.4.2+) supports rewind live feature. v2.4.2 has not been released yet when writing this answer. I mean it's available as a snapshot releases in your account at antmedia.io

Anyway, let me tell how it works. Ant Media Server deletes the obsolete HLS segments by default. So we need to make Ant Media Server keep every HLS segments in the list. In order to do that

  1. Open your application properties file with your favorite editor. i.e. for LiveApp it's /usr/local/antmedia/webapps/LiveApp/WEB-INF/red5-web.properties

  2. Set or add following properties in the file

    settings.hlsPlayListType=event
    settings.hlsflags=
    

    Default hls flags is delete_segments so that we just keep it empty

  3. Save the file and restart Ant Media Server

    sudo service antmedia restart
    
  4. Send a Live Stream to Ant Media Server with WebRTC or RTMP. Let's assume that you're sending a live stream with stream1 id

  5. Open the HLS player in your browser. https://YOUR_SERVER:5443/LiveApp/play.html?id=stream1&playOrder=hls

    You should see the slider bar in the player as shown below. It's by default playing the Live edge Ant Media Server DVR feature

    You can click any where in the slider to rewind back in the live stream as below. Ant Media Server rewind HLS

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 faraway