Update chunk size definition in HandleLiveStreamSD for clarity

This commit is contained in:
cedricve
2025-07-13 18:21:22 +00:00
parent fa604b16cf
commit ff72f9647d

View File

@@ -715,7 +715,7 @@ func HandleLiveStreamSD(livestreamCursor *packets.QueueCursor, configuration *mo
// To avoid base64 encoding, just send the raw []byte chunks as you do here. // To avoid base64 encoding, just send the raw []byte chunks as you do here.
// If you want to avoid base64, make sure the receiver can handle binary payloads. // If you want to avoid base64, make sure the receiver can handle binary payloads.
chunkSize := 1024 // 1kb chunkSize := 1 * 1024 // 1KB chunks
var chunks [][]byte var chunks [][]byte
for i := 0; i < len(bytes); i += chunkSize { for i := 0; i < len(bytes); i += chunkSize {
end := i + chunkSize end := i + chunkSize