place.stream.segment
Lexicon Version: 1
Definitions
Section titled “Definitions”Type: record
Media file representing a segment of a livestream
Record Key: tid
Record Properties:
Name | Type | Req’d | Description | Constraints |
---|---|---|---|---|
id | string | ✅ | Unique identifier for the segment | |
signingKey | string | ✅ | The DID of the signing key used for this segment | |
startTime | string | ✅ | When this segment started | Format: datetime |
duration | integer | ❌ | The duration of the segment in nanoseconds | |
creator | string | ✅ | Format: did | |
video | Array of #video | ❌ | ||
audio | Array of #audio | ❌ |
Type: object
Properties:
Name | Type | Req’d | Description | Constraints |
---|---|---|---|---|
codec | string | ✅ | Enum: opus | |
rate | integer | ✅ | ||
channels | integer | ✅ |
Type: object
Properties:
Name | Type | Req’d | Description | Constraints |
---|---|---|---|---|
codec | string | ✅ | Enum: h264 | |
width | integer | ✅ | ||
height | integer | ✅ | ||
framerate | #framerate | ❌ |
framerate
Section titled “framerate”Type: object
Properties:
Name | Type | Req’d | Description | Constraints |
---|---|---|---|---|
num | integer | ✅ | ||
den | integer | ✅ |
segmentView
Section titled “segmentView”Type: object
Properties:
Name | Type | Req’d | Description | Constraints |
---|---|---|---|---|
cid | string | ✅ | Format: cid | |
record | unknown | ✅ |
Lexicon Source
Section titled “Lexicon Source”{ "lexicon": 1, "id": "place.stream.segment", "defs": { "main": { "type": "record", "description": "Media file representing a segment of a livestream", "key": "tid", "record": { "type": "object", "required": ["id", "signingKey", "startTime", "creator"], "properties": { "id": { "type": "string", "description": "Unique identifier for the segment" }, "signingKey": { "type": "string", "description": "The DID of the signing key used for this segment" }, "startTime": { "type": "string", "format": "datetime", "description": "When this segment started" }, "duration": { "type": "integer", "description": "The duration of the segment in nanoseconds" }, "creator": { "type": "string", "format": "did" }, "video": { "type": "array", "items": { "type": "ref", "ref": "#video" } }, "audio": { "type": "array", "items": { "type": "ref", "ref": "#audio" } } } } }, "audio": { "type": "object", "required": ["codec", "rate", "channels"], "properties": { "codec": { "type": "string", "enum": ["opus"] }, "rate": { "type": "integer" }, "channels": { "type": "integer" } } }, "video": { "type": "object", "required": ["codec", "width", "height"], "properties": { "codec": { "type": "string", "enum": ["h264"] }, "width": { "type": "integer" }, "height": { "type": "integer" }, "framerate": { "type": "ref", "ref": "#framerate" } } }, "framerate": { "type": "object", "required": ["num", "den"], "properties": { "num": { "type": "integer" }, "den": { "type": "integer" } } }, "segmentView": { "type": "object", "required": ["cid", "record"], "properties": { "cid": { "type": "string", "format": "cid" }, "record": { "type": "unknown" } } } }}