the YouTube video ID
an optional time
StaticvalidStaticvalidGet the large thumbnail URL for the current video id
StaticforCreate a VideoParams instance from a href, only if it's on the watch page
StaticfromConvert a href into valid video params. Those can then be converted into a private player link when needed
Staticfrom
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