@aller/blink
Version:
A library for tracking user behaviour.
21 lines (20 loc) • 587 B
TypeScript
import { BlinkEvent } from '../types';
import { Page } from '../selectors/get-page-state';
export interface PrepareVideoPlayEventInput {
page: Page;
videoId: string;
position: number;
reason: string;
viewable: boolean;
muted: boolean;
streamingMode?: string;
channelId?: string;
time?: Date;
}
/**
* Prepares video load data selecting the right
* fields to send to the server
* Video load event fired when video viewbox is loaded
* on the page
*/
export default function prepareVideoPlayForSending(input: PrepareVideoPlayEventInput): BlinkEvent;