place.stream.media.viewCount

A streamplace node's report of view counts for one place.stream.video over a closed time window. Published in the reporting node's server repo (not the streamer's), so a video served by multiple nodes accumulates multiple records — consumers are expected to sum across trusted reporters. The rkey is conventionally `<windowStart-as-tid>-<video-rkey>` so re-running the aggregator over the same window is idempotent. Counts represent the reporting node's best effort given the data it has; the `tracks` array carries the objective byte / duration totals it observed.

Repository @stream.place did:plc:rbvrr34edl5ddpuwcubjiost not from the namespace authority
Details · record, key any
Kindrecord
Record keyany
Authoritymedia.stream.place
Indexed

Record

record · key any

Properties

count

requiredinteger

Number of distinct sessions the reporting node observed as a view over [windowStart, windowEnd).

  • minimum: 0

indexedAt

requiredstring · datetime

When the reporting node ran this aggregation. Useful for ordering successive reports.

tracks

array

Per-track totals of bytes + playback duration the reporting node served over the window. Each entry references the place.stream.media.track record whose bytes were transferred, so user-contributed tracks (transcripts, transcodes published by other accounts) attribute naturally to their own records.

itemsref
Reference

video

requiredstring · at-uri

AT-URI of the place.stream.video this count is for.

windowEnd

requiredstring · datetime

Exclusive upper bound of the aggregation window.

windowStart

requiredstring · datetime

Inclusive lower bound of the aggregation window.

#trackUsage

object

One row of the tracks array: bytes + duration transferred for a single place.stream.media.track record over the window.

Properties

bytes

requiredinteger

Total bytes served from this track over the window. Sum across attributed segment_requests' Range intersections with the track's segment offsets in the metafile.

  • minimum: 0

durationMs

requiredinteger

Total playback duration served from this track, in milliseconds. Per HLS segment in the range: (overlap bytes / segment bytes) * segment duration, so partial-segment fetches credit a proportional share of duration.

  • minimum: 0

track

requiredref

Strong reference to the place.stream.media.track record whose bytes were transferred.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • place.stream.media.getVideo

    query not from the namespace authority

    Get a hydrated view of a place.stream.video record — the record itself plus author info plus aggregated view counts summed across every reporting node we've indexed. View counts come from place.stream.media.viewCount records; consumers see one number per metric, with the underlying multi-reporter detail collapsed away.

  • place.stream.live.viewCount

    record not from the namespace authority

    Current view count for a livestream on a particular server.

  • Current viewer count for a livestream on a particular server. Record keys are streamer_did::server_did by convention.

  • place.stream.media.track

    record not from the namespace authority

    A track for a video stream, either part of the source or a custom additional track. One of: video, audio, subtitles.