Skip to content

getRTSPStreamUri() returns two ports in the string :80:554 #19

Description

@Skinah

I may have found a bug.

Code used is...
onvifCamera = new OnvifDevice("192.168.1.50:80", "user", "password");
some lines of code removed...
rtspUri = onvifCamera.getMedia().getRTSPStreamUri(profileToken);

This returns the following:

rtsp://192.168.1.50:80:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif

Note the double port numbers which my guess is because I specified a port when creating the onvifdevice.

If I remove the extra port the url does work ie

rtsp://192.168.1.50:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif

Using this version Jar

https://github.com/milg0/onvif-java-lib/blob/master/release/onvif-2016-03-16.jar

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions