REST API support to control playback video speed or direction
AnsweredI am able to get the Playback video stream using the following format of HTTP Video Streaming URL:
/media/<cameraId>.webm?pos={0}&auth={1}&rotation={2}&sfd={3}&resolution={4}
,where {0} -> archive stream start position
{1} -> authentication hash,
{2} -> degree of rotation,
{3} -> Stand Frame Duration,
{4} -> Video stream resolution
I want to implement the following functionalities:
1. Increase or decrease the playback video speed programmatically:
Initially I thought, using "sfd", I can control the video speed, but I was unable to do so. Sample URLs are:
https://<system_id>.relay.vmsproxy.com/media/<cameraId>.webm?pos=1586359080000&auth=ZZZ&rotation=0&sfd=2
https://<system_id>.relay.vmsproxy.com/media/<cameraId>.webm?pos=1586359080000&auth=ZZZ&rotation=0&sfd=4
ZZZ is the authentication hash
2. Is it possible to play a recorded video in reverse(backwards) using the above mentioned HTTP Video Streaming URL.
I was wondering does the REST API has any support for the two above described functionalities.
-
Hello Anirban,
The method you use by default does not limit the download rate.
The parameter sfd if present just limits this to the "standard frame duration", i.e. makes video to be played back on 1x speed.
Server does not expect any values for this parameter except for its presence, i.e. being True.Nothing else is supported. If you need that, you should implement this feature on the playback side and use the default option of the unlimited download rate. The procedure would be broken into the steps below:
- Download necessary archive part to some buffer
- Player starts to drag frames out of that buffer with a certain pre-programmed rate and display that
0
Please sign in to leave a comment.
Comments
1 comment