HomeDocsComponentsBlocksChartsThemes
Introduction
  • Introduction
  • Installation
  • Themes
  • llms.txt
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Upload
  • Hover Card
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Phone Input
  • Popover
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
AI
  • Message Scroller
  • Message
  • Bubble
  • Marker
  • Attachment
  • Questionnaire
  • Composer
  • Reasoning
  • Tool Call
  • Approval Card
  • Citations
Blocks
  • Airtable
  • Airtable Kanban
  • ClickUp List
  • ClickUp Kanban
  • Repeatable Group
  • Command Palette
  • Sign In and Sign Up
  • Availability Scheduler
  • AI Chat
  • Action Bar
  • Notion
  • Banking
  • Lineup Builder
  • Sports Score
  • Strava
  • Sheets
  • Notices
  • Settings
  • Billing
Utilities
  • motion
  • sounds
  • scroll-fade
  • shimmer
Another UI. Built on shadcn/ui with Phosphor icons.

Video Player

PreviousNext

Custom controls over a video, with buffering, speed, volume, picture in picture and fullscreen. The controls hide while it plays.

Base UIReact AriaRadix UI
Radix UI
Product tour, October update
0:00 / 0:00

Installation#

pnpm dlx shadcn@latest add https://anotherui.dev/r/video-player.json

Usage#

import { VideoPlayer } from "@/components/ui/video-player"
<VideoPlayer
  src="/media/tour.mp4"
  poster="/media/tour.jpg"
  title="Product tour, October update"
/>

Behaviour#

  • Click the video to play or pause, and double click for fullscreen.
  • The seek bar shows how much has loaded behind the played part.
  • While playing, the controls and cursor fade out after 2.5 seconds of no movement. Any pointer move, tap or key brings them back. They stay up while paused, while scrubbing and while the speed menu is open.
  • Picture in picture only shows where the browser supports it. On iPhone, fullscreen hands over to the system player.
  • The speed menu follows the player into fullscreen.

Keyboard#

Focus the player, then Space or K to play, Left and Right to skip 5 seconds, J and L for 10, Up and Down for volume, M to mute and F for fullscreen.

Props#

  • src, poster. The video and the image shown before it plays.
  • title. The accessible name, also shown at the top while the controls are up.
  • preload, loop. Passed to the video element.
TypographyWindow Mockup

On This Page

InstallationUsageBehaviourKeyboardProps