Skip to content

Commit

Permalink
Code refactoring after #1539
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jan 6, 2025
1 parent a55be80 commit c065db6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/onvif/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func GetProfileResponse(name string) []byte {
}

func appendProfile(e *Envelope, tag, name string) {
// empty `RateControl` important for UniFi Protect
e.Append(`<trt:`, tag, ` token="`, name, `" fixed="true">
<tt:Name>`, name, `</tt:Name>
<tt:VideoSourceConfiguration token="`, name, `">
Expand All @@ -172,7 +173,7 @@ func appendProfile(e *Envelope, tag, name string) {
<tt:Name>VEC</tt:Name>
<tt:Encoding>H264</tt:Encoding>
<tt:Resolution><tt:Width>1920</tt:Width><tt:Height>1080</tt:Height></tt:Resolution>
<trt:RateControl></trt:RateControl>
<tt:RateControl />
</tt:VideoEncoderConfiguration>
</trt:`, tag, `>
`)
Expand Down

0 comments on commit c065db6

Please sign in to comment.