UNPKG

@aidenlx/player

Version:

Headless web components that make integrating media on the a web a breeze.

45 lines (40 loc) 1.47 kB
// [@vidstack/eliza] THIS FILE IS AUTO GENERATED - SEE `eliza.config.ts` import "../../define/vds-time-slider.js"; import * as React from "react"; import { createComponent } from "../lib/index.js"; import { TimespanSliderElement } from "../../ui/timespan-slider/index.js"; const EVENTS = { /** Fired when the user begins interacting with the slider and dragging the thumb. The event detail contains the current value the drag is starting at. */ onSliderDragStart: "vds-slider-drag-start", /** Fired when the user stops dragging the slider thumb. The event detail contains the value the drag is ending at. */ onSliderDragEnd: "vds-slider-drag-end", /** Fired when the slider value changes. The event detail contains the current value. */ onSliderValueChange: "vds-slider-value-change", /** Fired when the slider drag value changes. The drag value indicates the last slider value that the user has dragged to. The event detail contains the value. */ onSliderDragValueChange: "vds-slider-drag-value-change", /** Fired when the device pointer is inside the slider region and it's position changes. The event detail contains the value. */ onSliderPointerValueChange: "vds-slider-pointer-value-change", } as const; /** A slider that lets the user control the current media playback time. */ const TimespanSlider = createComponent( React, "vds-time-slider", TimespanSliderElement, EVENTS, "TimespanSlider" ); export default TimespanSlider;