@mux/mux-player-react
Version:
An open source Mux player for React that Just Works™
15 lines (14 loc) • 579 B
TypeScript
import React from 'react';
import { MuxPlayerProps } from '@mux/mux-player-react/ads';
export interface VideoItem {
imageUrl: string;
title: string;
playbackId: string;
adTagUrl: string | (() => string) | (() => Promise<string>);
}
export type PlaylistVideos = VideoItem[];
export interface PlaylistProps extends Pick<MuxPlayerProps, Exclude<keyof MuxPlayerProps, 'playbackId' | 'adTagUrl'>> {
videoList: PlaylistVideos;
}
declare const MuxNewsPlayer: ({ videoList, ...props }: PlaylistProps) => React.JSX.Element;
export default MuxNewsPlayer;