place.stream.segment

did:web:stream.place View official

Documentation

Media file representing a segment of a livestream

main record

Media file representing a segment of a livestream

Record Key tid Timestamp-based ID

Properties

audio array of ref #audio Optional

No description available.

creator string did Required

A decentralized identifier (DID).

duration integer Optional

The duration of the segment in nanoseconds

id string Required

Unique identifier for the segment

signingKey string Required

The DID of the signing key used for this segment

size integer Optional

The size of the segment in bytes

startTime string datetime Required

When this segment started

video array of ref #video Optional

No description available.

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "id",
      "signingKey",
      "startTime",
      "creator"
    ],
    "properties": {
      "id": {
        "type": "string",
        "description": "Unique identifier for the segment"
      },
      "size": {
        "type": "integer",
        "description": "The size of the segment in bytes"
      },
      "audio": {
        "type": "array",
        "items": {
          "ref": "#audio",
          "type": "ref"
        }
      },
      "video": {
        "type": "array",
        "items": {
          "ref": "#video",
          "type": "ref"
        }
      },
      "creator": {
        "type": "string",
        "format": "did"
      },
      "duration": {
        "type": "integer",
        "description": "The duration of the segment in nanoseconds"
      },
      "startTime": {
        "type": "string",
        "format": "datetime",
        "description": "When this segment started"
      },
      "signingKey": {
        "type": "string",
        "description": "The DID of the signing key used for this segment"
      },
      "contentRights": {
        "ref": "place.stream.metadata.contentRights",
        "type": "ref"
      },
      "contentWarnings": {
        "ref": "place.stream.metadata.contentWarnings",
        "type": "ref"
      },
      "distributionPolicy": {
        "ref": "place.stream.metadata.distributionPolicy",
        "type": "ref"
      }
    }
  },
  "description": "Media file representing a segment of a livestream"
}
audio object

No description available.

Properties

channels integer Required

No description available.

codec string Required

No description available.

rate integer Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "codec",
    "rate",
    "channels"
  ],
  "properties": {
    "rate": {
      "type": "integer"
    },
    "codec": {
      "enum": [
        "opus"
      ],
      "type": "string"
    },
    "channels": {
      "type": "integer"
    }
  }
}
framerate object

No description available.

Properties

den integer Required

No description available.

num integer Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "num",
    "den"
  ],
  "properties": {
    "den": {
      "type": "integer"
    },
    "num": {
      "type": "integer"
    }
  }
}
segmentView object

No description available.

Properties

cid string cid Required

A content identifier (CID) referencing immutable data.

record unknown Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "cid",
    "record"
  ],
  "properties": {
    "cid": {
      "type": "string",
      "format": "cid"
    },
    "record": {
      "type": "unknown"
    }
  }
}
video object

No description available.

Properties

bframes boolean Optional

No description available.

codec string Required

No description available.

framerate ref #framerate Optional

No description available.

height integer Required

No description available.

width integer Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "codec",
    "width",
    "height"
  ],
  "properties": {
    "codec": {
      "enum": [
        "h264"
      ],
      "type": "string"
    },
    "width": {
      "type": "integer"
    },
    "height": {
      "type": "integer"
    },
    "bframes": {
      "type": "boolean"
    },
    "framerate": {
      "ref": "#framerate",
      "type": "ref"
    }
  }
}

Lexicon Garden

@