PeerTube/packages/core-utils/src
Chocobozzz 5cb3e6a0b8
Use sessionId instead of IP to identify viewer
Breaking: YAML config `ip_view_expiration` is renamed `view_expiration`
Breaking: Views are taken into account after 10 seconds instead of 30
seconds (can be changed in YAML config)

Purpose of this commit is to get closer to other video platforms where
some platforms count views on play (mux, vimeo) or others use a very low
delay (instagram, tiktok)

We also want to improve the viewer identification, where we no longer
use the IP but the `sessionId` generated by the web browser. Multiple
viewers behind a NAT can now be able to be identified as independent
viewers (this method is also used by vimeo or mux)
2024-04-04 16:27:40 +02:00
..
abuse Migrate server to ESM 2023-08-11 15:02:33 +02:00
common Use sessionId instead of IP to identify viewer 2024-04-04 16:27:40 +02:00
i18n Support tr locale 2024-03-26 14:25:12 +01:00
plugins Migrate server to ESM 2023-08-11 15:02:33 +02:00
renderer Fix the escapeAttribute function using HTML entities instead of backslash escapes (#6206) 2024-02-15 14:39:59 +01:00
string Fix chapters import 2023-11-29 14:12:13 +01:00
users Migrate server to ESM 2023-08-11 15:02:33 +02:00
videos Add video aspect ratio in server 2024-02-27 15:24:34 +01:00
index.ts Add video chapters support 2023-08-28 16:17:31 +02:00