Computes a stable, unique identity hash for a stream based on its properties.
The result is identical for all peers regardless of the player in use or the
stream's position in the manifest.
Uses a SHA-1 hash of the normalized properties, encoded to standard Base64.
This function is environment-agnostic and can be used on a server (Node.js 16+)
to reproduce the identity hash a client computes for the same stream.
Computes a stable, unique identity hash for a stream based on its properties. The result is identical for all peers regardless of the player in use or the stream's position in the manifest.
Uses a SHA-1 hash of the normalized properties, encoded to standard Base64.
This function is environment-agnostic and can be used on a server (Node.js 16+) to reproduce the identity hash a client computes for the same stream.