Code refactoring after #1539
This commit is contained in:
+2
-1
@@ -161,6 +161,7 @@ func GetProfileResponse(name string) []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func appendProfile(e *Envelope, tag, name string) {
|
func appendProfile(e *Envelope, tag, name string) {
|
||||||
|
// empty `RateControl` important for UniFi Protect
|
||||||
e.Append(`<trt:`, tag, ` token="`, name, `" fixed="true">
|
e.Append(`<trt:`, tag, ` token="`, name, `" fixed="true">
|
||||||
<tt:Name>`, name, `</tt:Name>
|
<tt:Name>`, name, `</tt:Name>
|
||||||
<tt:VideoSourceConfiguration token="`, name, `">
|
<tt:VideoSourceConfiguration token="`, name, `">
|
||||||
@@ -172,7 +173,7 @@ func appendProfile(e *Envelope, tag, name string) {
|
|||||||
<tt:Name>VEC</tt:Name>
|
<tt:Name>VEC</tt:Name>
|
||||||
<tt:Encoding>H264</tt:Encoding>
|
<tt:Encoding>H264</tt:Encoding>
|
||||||
<tt:Resolution><tt:Width>1920</tt:Width><tt:Height>1080</tt:Height></tt:Resolution>
|
<tt:Resolution><tt:Width>1920</tt:Width><tt:Height>1080</tt:Height></tt:Resolution>
|
||||||
<trt:RateControl></trt:RateControl>
|
<tt:RateControl />
|
||||||
</tt:VideoEncoderConfiguration>
|
</tt:VideoEncoderConfiguration>
|
||||||
</trt:`, tag, `>
|
</trt:`, tag, `>
|
||||||
`)
|
`)
|
||||||
|
|||||||
Reference in New Issue
Block a user