REST API Direct Download is Slow
AnsweredREST API Direct Download is significantly slower (~100x) than downloading from the desktop application. Is this caused by server settings? Is there any way to improve this?
-
Hello Mickey,
are you referring to video export option in the desktop GUI versus /media or /hls API call? Depending on how you call API methods it could trigger video transcoding/resizing which might explain slower downloading.
Could you please provide API request examples which you use for your download?
0 -
Anton Babinov Here is an example of the URL used to call the Direct Download method:
https://xxxx:yyyy@zzzz/hls/AC-CC-8E-DD-BE-B1.mkv?pos=2021-02-24T21:05:38&duration=30
Thanks for the help!
0 -
@... at the moment /hls API isn't optimised well and in some cases it could take longer for the server to prepare the content. We're aware of this issue and we're hoping to solve it in future releases. In a meantime, we introduced new parameters to /media API which you can use for direct download. You can test it by installing 4.1 January patch:
In-Client Upgrade:
Build Number: 32405 Password: h985lc You should be able to use API request like this:
https://xxxx:yyyy@zzzz/media/AC-CC-8E-DD-BE-B1.mkv?pos=2021-02-24T21:05:38&duration=30
0 -
Anton Babinov This is so much better. Thank you!
Is that API call downloading high quality video, or is there an additional argument for that?
0 -
Yes, you can use additional query parameters like stream or resolution in your request, please refer to full API reference at https://<server IP>:7001:/static/api.xml
0
Please sign in to leave a comment.
Comments
5 comments