the YouTube video ID
an optional time
Static
validStatic
validStatic
forCreate a VideoParams instance from a href, only if it's on the watch page
Static
fromConvert a href into valid video params. Those can then be converted into a private player link when needed
Static
fromConvert a relative pathname into VideoParams
A container for valid/parsed video params.
If you have an instance of
VideoParams
, then you can trust that it's valid, and you can always produce a PrivatePlayer link from itThe purpose is to co-locate all processing of search params/pathnames for easier security auditing/testing
Example