-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve getAudioEncoderConfigurationOptions
.
#150
base: master
Are you sure you want to change the base?
Improve getAudioEncoderConfigurationOptions
.
#150
Conversation
Update JSDoc.
Yes the structure did change. Now we also have Media2 (Media Service Version 2.0 and the URL has ver20 in it) So we need to check if a camera uses Media1 or Media2 and then parse the XML differently depending on which Media Service (media 1 or media 2) the camera supports. |
Just to add some extra info.
If you read the latest ONVIF Core Specification it says we are supposed to call getSystemDateAndTime and then call GetServices The old GetCapabilities ONVIF command is now deprecated and left in for backwards compatibility.
So actually there is a larger issue here. So before we can implement this PR we need to fix some other things in the library. Let me know if you need any more info. Roger |
Hi. |
I have a few questions.
|
Old ONVIF used the GetCapabilities command to get the ONVIF Services like device and media. New ONVIF uses the GetServices command to get the Device Services like Media2. So first step is to edit the library when it first connects to the camera. You need to set a global flag for the class and use it to decide what format XML to send. Roger |
Hi @bl0ggy . Do you still have access to your Samsung and Hik cameras? |
Hi Jessy, I've made use of your changes to detect Media2 in my 'roger' branch on github. For getProfiles, getStreamUri and getSnapshotUri I made the function handle media1 and media2 and I modified the result so Media2 results look like Media1 results. Roger |
Hi @RogerHardiman, yes I still have access to some Samsung cameras and at least one Hik. |
@bl0ggy . Just wanted to let you know that in the summer I added code to detect Media API and Media2 API for video. |
@RogerHardiman I saw your improvements and tried to copy them to the typescript version. So, what to do you think now? |
Permit to get an
AudioEncoderConfigurationOption
with either aConfigurationToken
, aProfileToken
or both as first argument.Update JSDoc.
This breaks backward compatibility. But I wonder, I updated the response XML file because with the cameras I have (Samsung and HIK Vision), it's very different. First, there are
tt:Options
tags inside thetrt:Options
tag, second, the elements in lists are nottt:List
buttt:Items
. Did the structure change over years ? Are there cameras still responding the old way ? If that's the case, we will have to convert one structure into the other.