Accessing The recording token and recording block token through the open API #632
-
Hi All, I'm currently trying to access the recording token and recording block token of my video recordings saved on my video share file. As you can see I can get the recording id and I can use that to reconstruct most of the file path minus the last 4 characters boxed in the second picture. [This is called recording block token in the XML file] Does anyone know the API call to access this information? I've looked through all the documentation on network shares and cant seem to find anything to pull this information. Thank you, Cam |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @cnickle222 |
Beta Was this translation helpful? Give feedback.
-
Hi @vivekatoffice, I would like to be able to play the video in a browser (more or less over HTTP) Would you happen to know how to make this call in Python? Generally I use the 'urlib2' library for things of this nature and I'm uncertain how to make a request as show in example 7 via the urlib2 library and python in general. Also, if its not to much to ask would you happen to know if Axis cameras more or less run their own web-servers or is all OS and HMI masking? |
Beta Was this translation helpful? Give feedback.
-
Hi @cnickle222 , Note: |
Beta Was this translation helpful? Give feedback.
-
Hi @vivekatoffice, Thank you very much for your suggestion of the "record/play.cgi" call. However, even after confirming my video files were MJPEG I could not successfully make this call and kept receiving 404 errors from the camera server. I think this may be because my firmware simply does not have this functionality as the firmware is the most up-to-date and this call as you said is 'depreciated'. Here are screen shots of the last attempt. I took a look at the 636 link you sent but I am still confused as to how that would help make a call of the form example 7 took. I think this type of call would be what I need as it it RTSP tunneling through HTTP. The only issue is I have no idea how to make this call or anything of this type. Would you be willing to expressly show me how to make a call like this using something like Postman or any tool at all? I just need to see how its done. Also thank you for explaining that it is run on an Apache server. I should have been able to figure that out but I appreciate your patience. Thank you, Cam |
Beta Was this translation helpful? Give feedback.
-
Hi @vivekatoffice, This solution helps with a different issue I was having with my project so that is wonderful, thank you :D. (Also what you've given me would be really helpful when I want to make a manual record option or something like it. So thank you for that as well.) However, when I go to access a different video recording I am presented with the same live stream feed every time. I'm not sure if this would cause an issue or not but I am using a network share as my storage for all my video feeds at the moment. When I went and double checked the function it does not appear to have a 'recordingid' parameter and I think that is its issue. https://www.axis.com/vapix-library/subjects/t10175981/section/t10188469/display But this is good news because the RTSP over HTTP tunneling is working properly so that means the server is working as it should. We just need to find a way to access it properly. I'm still thinking using the RTSP API is the way to go about it but I have no idea how to utilize this portion of the API. Do you know how I could go about making this type of call to just play a recording I already have stored in my browser? (As the play function dosent work anymore :( ) |
Beta Was this translation helpful? Give feedback.
Hi @cnickle222
Do you want to export it or play using RTSP?
Export recording API
RTSP Pull