Notify user is watching a video
Call this endpoint regularly (every 5-10 seconds for example) to notify the server the user is watching the video. After a while, PeerTube will increase video's viewers counter. If the user is authenticated, PeerTube will also store the current player time.
Body
currentTimeinteger<seconds>requiredtimestamp within the video, in seconds
5viewEventstringseekEvent since last viewing call:
seek- If the user seeked the video
sessionIdstringOptional param to represent the current viewer session. Used by the backend to properly count one view per session per video. PeerTube admin can configure the server to not trust this sessionId parameter but use the request IP address instead to identify a viewer.
clientstringClient software used to watch the video. For example "Firefox", "PeerTube Approval Android", etc.
deviceVideoStatsUserAgentDeviceDevice used to watch the video. For example "desktop", "mobile", "smarttv", etc.
operatingSystemstringOperating system used to watch the video. For example "Windows", "Ubuntu", etc.
Parameters
idid | UUIDv4 | shortUUIDrequiredpathThe object id, uuid or short uuid
Response
successful operation