[webkit-changes] [WebKit/WebKit] 700d10: [tvOS] Add a scrubber bar to media controls

aestes noreply at github.com
Wed Jul 24 19:24:15 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 700d10c33417fbc5cf21cc0c0ea93a2d5652be2d
      https://github.com/WebKit/WebKit/commit/700d10c33417fbc5cf21cc0c0ea93a2d5652be2d
  Author: Andy Estes <aestes at apple.com>
  Date:   2024-07-24 (Wed, 24 Jul 2024)

  Changed paths:
    M Source/WebCore/Modules/modern-media-controls/controls/time-control.js
    M Source/WebCore/Modules/modern-media-controls/controls/tvos-media-controls.css
    M Source/WebCore/Modules/modern-media-controls/controls/tvos-media-controls.js

  Log Message:
  -----------
  [tvOS] Add a scrubber bar to media controls
https://bugs.webkit.org/show_bug.cgi?id=277025
rdar://132426889

Reviewed by Eric Carlson.

Moved the play/pause and seek back/forward buttons to the bottom and added an interactive scrubber
bar above these controls. Added an option to TimeControl to render the elapsed/remaining time
labels below the scrubber.

* Source/WebCore/Modules/modern-media-controls/controls/time-control.js:
(TimeControl.prototype._performIdealLayout):
* Source/WebCore/Modules/modern-media-controls/controls/tvos-media-controls.css:
(.media-controls.fullscreen.tvos > .controls-bar):
(.media-controls.fullscreen.tvos.uses-ltr-user-interface-layout-direction > .controls-bar.top-left,):
(.media-controls.fullscreen.tvos.uses-ltr-user-interface-layout-direction > .controls-bar.top-right,):
(.media-controls.fullscreen.tvos > .controls-bar.bottom):
(.media-controls.fullscreen.tvos > .controls-bar.bottom > .buttons-container):
(.media-controls.fullscreen.tvos > .controls-bar.center): Deleted.
* Source/WebCore/Modules/modern-media-controls/controls/tvos-media-controls.js:
(TVOSMediaControls.prototype.layout):
(TVOSMediaControls.prototype._centerContainerButtons): Deleted.

Canonical link: https://commits.webkit.org/281327@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list