Video
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.
post/api/v1/videos/{id}/views
Path parameters
Example:42
The object id, uuid or short uuid
Request body
Example request
{
"currentTime": 5
}Response
successful operation