Skip to main content

fits_player

Function fits_player 

Source
pub fn fits_player(physical: Vec2, native_pixels_per_point: f32) -> bool
Expand description

Whether a player of physical pixels meets YouTube’s minimum (MIN_PLAYER each way). native_pixels_per_point is the system’s scale: the web view’s pixels are the window’s physical pixels divided by it, so a 2x screen needs 400 physical pixels. Both counts must reach the minimum.