Monitor Progress
You can use the QueueInfo action to monitor the progress of Media Server as it processes a file (but not a stream).
For example, send the following action:
http://localhost:14000/action=QueueInfo
&QueueName=process
&QueueAction=progress
&Token=...
where the token parameter specifies the asynchronous action token returned by the process action.
Media Server returns a response similar to:
<autnresponse>
<action>QUEUEINFO</action>
<response>SUCCESS</response>
<responsedata>
<action>
<token>......................................</token>
<status>Processing</status>
<progress>
<building_mode>false</building_mode>
<percent>26.407</percent>
<time_processing>71</time_processing>
<estimated_time_remaining>198</estimated_time_remaining>
</progress>
</action>
</responsedata>
</autnresponse>
The response includes the following information:
- The
building_modeelement specifies whether Media Server is building progress information. If the value here istrue, Media Server is still analyzing the file to determine its length. - The
percentelement specifies the progress of Media Server. In the previous example, Media Server has processed 26% of the file. - The
time_processingelement indicates how long Media Server has spent processing the file so far. - The
estimated_time_remainingelement provides an estimate of how long Media Server needs to complete processing the file.