Skip to content

Commit

Permalink
Merge pull request #4 from jimm98y/3-problem-in-getstreemuri
Browse files Browse the repository at this point in the history
B Fix for Axis camera GetStreamUri returning Bad Request
  • Loading branch information
jimm98y authored Sep 29, 2024
2 parents b8dcbec + ac93191 commit f45da39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SharpOnvifClient/SimpleOnvifClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public async Task<MediaUri> GetStreamUriAsync(string profileToken)
new System.ServiceModel.EndpointAddress(mediaUrl)))
{
SetAuthentication(mediaClient.Endpoint, _auth);
var streamUri = await mediaClient.GetStreamUriAsync(new StreamSetup(), profileToken).ConfigureAwait(false);
var streamUri = await mediaClient.GetStreamUriAsync(new StreamSetup() { Transport = new Transport() { Protocol = TransportProtocol.RTSP } }, profileToken).ConfigureAwait(false);
return streamUri;
}
}
Expand Down

0 comments on commit f45da39

Please sign in to comment.