Fix H265 codec for bubble source

This commit is contained in:
Alexey Khit
2023-07-24 14:11:28 +03:00
parent 0f33ef0fc5
commit 8e7c9d19e4
+1 -1
View File
@@ -132,7 +132,7 @@ func (c *Client) Dial() (err error) {
// <stream1 name="360p.265" size="640x360" x1="yes" x2="yes" x4="yes" />
// <vin0>
// </bubble>
re := regexp.MustCompile("<stream " + stream + `[^>]+`)
re := regexp.MustCompile("<stream" + stream + " [^>]+")
stream = re.FindString(string(xml))
if strings.Contains(stream, ".265") {
c.videoCodec = core.CodecH265