place.stream.segment
Media file representing a segment of a livestream
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | stream.place |
| Indexed |
Checks
Validunlimited-stringdefs.audio.properties.codecNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.idNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.signingKeyNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.video.properties.codecNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"audio": {
"properties": {
"channels": {
"type": "integer"
},
"codec": {
"enum": [
"opus",
"aac"
],
"type": "string"
},
"rate": {
"type": "integer"
}
},
"required": [
"codec",
"rate",
"channels"
],
"type": "object"
},
"framerate": {
"properties": {
"den": {
"type": "integer"
},
"num": {
"type": "integer"
}
},
"required": [
"num",
"den"
],
"type": "object"
},
"main": {
"description": "Media file representing a segment of a livestream",
"key": "tid",
"record": {
"properties": {
"audio": {
"items": {
"ref": "#audio",
"type": "ref"
},
"type": "array"
},
"contentRights": {
"ref": "place.stream.metadata.contentRights",
"type": "ref"
},
"contentWarnings": {
"ref": "place.stream.metadata.contentWarnings",
"type": "ref"
},
"creator": {
"format": "did",
"type": "string"
},
"distributionPolicy": {
"ref": "place.stream.metadata.distributionPolicy",
"type": "ref"
},
"duration": {
"description": "The duration of the segment in nanoseconds",
"type": "integer"
},
"id": {
"description": "Unique identifier for the segment",
"type": "string"
},
"signingKey": {
"description": "The DID of the signing key used for this segment",
"type": "string"
},
"size": {
"description": "The size of the segment in bytes",
"type": "integer"
},
"startTime": {
"description": "When this segment started",
"format": "datetime",
"type": "string"
},
"video": {
"items": {
"ref": "#video",
"type": "ref"
},
"type": "array"
}
},
"required": [
"id",
"signingKey",
"startTime",
"creator"
],
"type": "object"
},
"type": "record"
},
"segmentView": {
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"record": {
"type": "unknown"
}
},
"required": [
"cid",
"record"
],
"type": "object"
},
"video": {
"properties": {
"bframes": {
"type": "boolean"
},
"codec": {
"enum": [
"h264"
],
"type": "string"
},
"framerate": {
"ref": "#framerate",
"type": "ref"
},
"height": {
"type": "integer"
},
"width": {
"type": "integer"
}
},
"required": [
"codec",
"width",
"height"
],
"type": "object"
}
},
"id": "place.stream.segment",
"lexicon": 1
}