ENGLISH·COURSE API
    Preparing search index...
    • Whether a player of this width wears the Default Layout's compact chrome.

      Parameters

      • width: number

        The player's own width in CSS pixels, as Vidstack reports it

      Returns boolean

      true while the compact chrome is in force

      The single source for the question "which chrome is on screen?". The Player's smallLayoutWhen asks it, and so does the decision to draw a centre play/pause control — the compact chrome draws one of its own, and exactly one may ever be on screen.

      isCompactChrome(360); // true  — a phone in portrait
      isCompactChrome(714); // false — the player enlarged in landscape