faithoflifedev / easy_onvif_workspace

This package works with a variety of ONVIF compatible devices allowing for IP Cameras and NVRs (network video recorders) to be integrated into Dart and Flutter applications.
32 stars 18 forks source link

getStreamUri doesn't connect to sub stream of Onvif camera #57

Closed bubblesdev closed 6 months ago

bubblesdev commented 8 months ago

Hi there! I'm having difficulty in connecting to the substream of Onvif device. Such that it throws Dio exception while making the request which it makes difficult to debug as it comes from the package itself. Kindly look into this issue pls. Thank you for your feedback

faithoflifedev commented 8 months ago

Hi @bubblesdev ,

Some tips on how to get help with an issue:

Without these as a minimum there's not much help anyone can provide.

bubblesdev commented 8 months ago

Thnks but i have gone through previous issues but no related ones.

Screen Shot 2024-02-16 at 19 55 40

It throws the error in the screenshot above when connecting to the sub stream of an onvif and it connect to the main stream. Here's a screenshot of the profile in the device from onvifer application. IMG_5165

I can't debug exactly why it is not processing the request. I hope this helps!

faithoflifedev commented 8 months ago

Hi @bubblesdev,

If you install and Configure the cli tools provided by the package you can get information back from your camera that can be very useful for debugging.

Your stated issue is "I'm having difficulty in connecting to the substream of Onvif device.". Since this package only covers the protocols and spec of Onvif, it provided no code that allows you to actually "connect" with a stream. It does provide the means to you to determine the uri of a stream which you could feed to some other tool to connect.

Once you've got the cli tools configured and working, then you could run a command like:

#Where Profile_2 is the profile token of the substream
onvif media1  get-stream-uri -t Profile_2

The command will output the uri for the stream along with some other info.

As mentioned earlier, unless you can provide some simple code that can be used to recreate your issue, then there's not much help that can be offered. Also if the problem is outside the scope of this tool set, you'll have to look outside for help.

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 6 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.