UNPKG

@zezosoft/zezo-ott-react-native-video-player

Version:

Production-ready React Native OTT video player library for Android & iOS. Features: playlists, seasons, auto-next playback, subtitles (SRT/VTT), custom theming, analytics tracking, fullscreen mode, gesture controls, ads player (pre-roll/mid-roll/post-roll

31 lines 1.13 kB
import React from 'react'; import { type EdgeInsets } from 'react-native-safe-area-context'; import type { MediaEpisode, VideoAd } from './VideoPlayer/store/videoPlayer.type'; import type { VideoPlayerTheme } from './VideoPlayer/context'; import { type ExtendedWatchProgress } from './VideoPlayer/utils'; export interface VideoPlayerProps { onClose?: () => void; isFocused?: boolean; seekTime?: number | null; mode?: 'fullscreen' | 'normal'; autoNext?: boolean; event?: { onPressEpisode?: ({ episode, }: { episode: MediaEpisode; }) => Promise<boolean>; }; theme?: Partial<VideoPlayerTheme>; onWatchProgress?: (progress: ExtendedWatchProgress) => void; ads?: VideoAd[]; onAdEnd?: (ad: VideoAd) => void; onAdError?: (error: Error, ad: VideoAd) => void; onAdTracking?: ({ ad, trackingUrl, event, }: { ad: VideoAd; trackingUrl: string; event: string; }) => void; insets: EdgeInsets; } declare const _default: React.NamedExoticComponent<VideoPlayerProps>; export default _default; //# sourceMappingURL=VideoPlayer.d.ts.map