feat(protocol): carry complete encoded media frames
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const SchemaSHA256 = "3aec8dd72bdbb6b9657c8df3160252c93034c7c1032d471e01eae2ef91e47716"
|
||||
const SchemaSHA256 = "a86cbdaf2cfb884e3d98467968007e731ca55c6f6eb6dbd5cd6b95e062a9b058"
|
||||
const ProtocolVersion = "1.0.0"
|
||||
const CurrentWireVersion = "1"
|
||||
const NMinus1WireVersion = "0"
|
||||
@@ -851,11 +851,8 @@ func (v CapabilityProfile) Validate() error {
|
||||
if v.Framing == "" {
|
||||
violations = append(violations, FieldViolation{Field: "framing", Code: "required"})
|
||||
}
|
||||
if len(v.Framing) < 1 && v.Framing != "" {
|
||||
violations = append(violations, FieldViolation{Field: "framing", Code: "min_length"})
|
||||
}
|
||||
if len(v.Framing) > 64 {
|
||||
violations = append(violations, FieldViolation{Field: "framing", Code: "max_length"})
|
||||
if v.Framing != "" && !(v.Framing == "datagram-v1" || v.Framing == "datagram-v2") {
|
||||
violations = append(violations, FieldViolation{Field: "framing", Code: "invalid_value"})
|
||||
}
|
||||
if v.Media == "" {
|
||||
violations = append(violations, FieldViolation{Field: "media", Code: "required"})
|
||||
|
||||
Reference in New Issue
Block a user