Results 1 to 2 of 2

Thread: Ensuring live recording output completes when shutting down the server

  1. #1
    Join Date
    Jul 2015

    Default Ensuring live recording output completes when shutting down the server

    Hi there,

    I am currently writing a server side module to do live recording. When I shutdown the server in the middle of a live recording, the last "segment" of the live recording is incomplete (the .tmp file remains).
    Is there a way to ensure that the last segment recorded can finish writing to file properly so that it is playable?

    By shutdown of the server, I mean stopping the eclipse debugger, or closing the "console" window if I used the startup.bat in the [install-dir]/bin folder.

    I was looking at calling vhost.getLiveStreamRecordManager().stopRecording(appInstance);
    in the onServerShutdownStart(IServer) or onServerShutdownComplete(IServer) event listeners for IServerNotify3 to ensure the recording is stopped before shutdown. Would this work? If so, how could I get reference to the appInstance and vhost from the IServerNotify3 event listeners?

    Thank you very much,

  2. #2
    Join Date
    Jan 2015


    Hi Eric,

    You can look into using the IMediaWriterActionNotify listener interface to be notified when the recording is completed. You can then call the method to shutdown the server.

    I hope that helps!


Similar Threads

  1. RTMP output failed alarm in my encoder output.
    By venkat.21 in forum Live Streaming and Encoders
    Replies: 2
    Last Post: 02-23-2015, 07:37 AM
  2. Is server down automatically for some reasons?
    By zibrohimov in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 7
    Last Post: 12-09-2013, 04:29 PM
  3. Replies: 4
    Last Post: 09-09-2013, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts