UNPKG

@playkit-js/playkit-js-ui

Version:

[![Build Status](https://github.com/kaltura/playkit-js-ui/actions/workflows/run_canary_full_flow.yaml/badge.svg)](https://github.com/kaltura/playkit-js-ui/actions/workflows/run_canary_full_flow.yaml) [![code style: prettier](https://img.shields.io/badge/c

27 lines (24 loc) 540 B
import {FakeEvent} from '@playkit-js/playkit-js'; import {EventType} from '../event-type'; /** * RewindClickedEvent event * * @class RewindClickedEvent * @extends {FakeEvent} */ class RewindClickedEvent extends FakeEvent { /** * @constructor * * @param {number} from - The start seek time. * @param {number} to - The target seek time. */ constructor(from: number, to: number) { super(EventType.USER_CLICKED_REWIND); this.payload = { from: from, to: to }; } } export {RewindClickedEvent};