feat(frontend): implement full in-app streaming system with 4 APIs
- Add streaming types, interfaces, and normalized response structures - Create StreamingManager with URL building, validation, and security - Implement provider adapters for VidLink (2 servers), VidKing (1 server), AnyEmbed (5 servers) - Add Zustand streaming store with server selection, fallback, and retry logic - Build StreamingPlayer iframe component with fullscreen and keyboard shortcuts - Add ServerSelector dropdown with 8 servers and active state indicator - Create EpisodeNavigator with season tabs and episode grid - Implement AutoMarkWatchedPrompt for one-time completion opt-in - Add StreamingSection with Watch Now / Continue Watching entry point - Integrate StreamingSection into EntryDetailsPage
This commit is contained in:
1 parent
1a2ec5c505
commit
54014ae01f
19 files changed
+2617
No files matched your search
@@ -0,0 +1,26 @@
|
||||
export type { StreamingProvider, StreamingServer, StreamRequest, StreamResponse, StreamError, PlayerEvent, WatchProgressData, AutoMarkWatchedConfig, StreamingState, MediaType } from './types';
|
||||
export {
|
||||
getAllServers,
|
||||
getProviderForServer,
|
||||
getServerById,
|
||||
getStreamUrl,
|
||||
isStreamError,
|
||||
getServerSandboxPolicy,
|
||||
getServerAllowedFeatures,
|
||||
getPreferredServerId,
|
||||
setPreferredServerId,
|
||||
getPreferredServer,
|
||||
getWatchProgress,
|
||||
getEntryWatchProgress,
|
||||
saveWatchProgress,
|
||||
updateProgressFromEvent,
|
||||
getAutoMarkWatchedConfig,
|
||||
setAutoMarkWatchedConfig,
|
||||
hasAutoMarkPromptBeenShown,
|
||||
markAutoMarkPromptShown,
|
||||
logWatchCompleted,
|
||||
getWatchLogs,
|
||||
isConsideredWatched,
|
||||
isValidEmbedUrl,
|
||||
isValidEventOrigin,
|
||||
} from './streaming-manager';
|
||||
@@ -0,0 +1,78 @@
|
||||
import type { StreamingProvider, StreamingServer, StreamRequest } from '../types';
|
||||
|
||||
const ANYEMBED_SERVERS: StreamingServer[] = [
|
||||
{
|
||||
id: 'anyembed-1',
|
||||
name: 'AnyEmbed (Server 1)',
|
||||
provider: 'anyembed',
|
||||
serverIndex: 1,
|
||||
supportsEvents: false,
|
||||
supportsProgress: false,
|
||||
},
|
||||
{
|
||||
id: 'anyembed-2',
|
||||
name: 'AnyEmbed (Server 2)',
|
||||
provider: 'anyembed',
|
||||
serverIndex: 2,
|
||||
supportsEvents: false,
|
||||
supportsProgress: false,
|
||||
},
|
||||
{
|
||||
id: 'anyembed-3',
|
||||
name: 'AnyEmbed (Server 3)',
|
||||
provider: 'anyembed',
|
||||
serverIndex: 3,
|
||||
supportsEvents: false,
|
||||
supportsProgress: false,
|
||||
},
|
||||
{
|
||||
id: 'anyembed-4',
|
||||
name: 'AnyEmbed (Server 4)',
|
||||
provider: 'anyembed',
|
||||
serverIndex: 4,
|
||||
supportsEvents: false,
|
||||
supportsProgress: false,
|
||||
},
|
||||
{
|
||||
id: 'anyembed-5',
|
||||
name: 'AnyEmbed (Server 5)',
|
||||
provider: 'anyembed',
|
||||
serverIndex: 5,
|
||||
supportsEvents: false,
|
||||
supportsProgress: false,
|
||||
},
|
||||
];
|
||||
|
||||
export const anyembedProvider: StreamingProvider = {
|
||||
id: 'anyembed',
|
||||
name: 'AnyEmbed',
|
||||
servers: ANYEMBED_SERVERS,
|
||||
|
||||
getStreamUrl(request: StreamRequest, server: StreamingServer): string {
|
||||
// Prefer IMDB ID if available (with tt prefix), fall back to TMDB ID
|
||||
const id = request.imdbId || String(request.tmdbId);
|
||||
|
||||
let basePath: string;
|
||||
if (request.type === 'movie') {
|
||||
basePath = `/movie/${id}`;
|
||||
} else {
|
||||
basePath = `/tv/${id}/${request.season}/${request.episode}`;
|
||||
}
|
||||
|
||||
const params = new URLSearchParams();
|
||||
if (server.serverIndex) {
|
||||
params.set('server', String(server.serverIndex));
|
||||
}
|
||||
|
||||
const query = params.toString();
|
||||
return `https://anyembed.xyz${basePath}${query ? `?${query}` : ''}`;
|
||||
},
|
||||
|
||||
getSandboxPolicy(): string {
|
||||
return 'allow-scripts allow-same-origin allow-forms allow-popups allow-presentation';
|
||||
},
|
||||
|
||||
getAllowedFeatures(): string {
|
||||
return 'autoplay; fullscreen; picture-in-picture; encrypted-media';
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
export { vidlinkProvider } from './vidlink';
|
||||
export { vidkingProvider } from './vidking';
|
||||
export { anyembedProvider } from './anyembed';
|
||||
@@ -0,0 +1,45 @@
|
||||
import type { StreamingProvider, StreamingServer, StreamRequest } from '../types';
|
||||
|
||||
const VIDKING_SERVERS: StreamingServer[] = [
|
||||
{
|
||||
id: 'vidking-default',
|
||||
name: 'VidKing',
|
||||
provider: 'vidking',
|
||||
supportsEvents: true,
|
||||
supportsProgress: true,
|
||||
},
|
||||
];
|
||||
|
||||
export const vidkingProvider: StreamingProvider = {
|
||||
id: 'vidking',
|
||||
name: 'VidKing',
|
||||
servers: VIDKING_SERVERS,
|
||||
|
||||
getStreamUrl(request: StreamRequest, _server: StreamingServer): string {
|
||||
const params = new URLSearchParams();
|
||||
params.set('autoPlay', 'true');
|
||||
params.set('nextEpisode', 'true');
|
||||
params.set('episodeSelector', 'true');
|
||||
|
||||
if (request.startAt && request.startAt > 0) {
|
||||
params.set('progress', String(Math.floor(request.startAt)));
|
||||
}
|
||||
|
||||
let basePath: string;
|
||||
if (request.type === 'movie') {
|
||||
basePath = `/embed/movie/${request.tmdbId}`;
|
||||
} else {
|
||||
basePath = `/embed/tv/${request.tmdbId}/${request.season}/${request.episode}`;
|
||||
}
|
||||
|
||||
return `https://www.vidking.net${basePath}?${params.toString()}`;
|
||||
},
|
||||
|
||||
getSandboxPolicy(): string {
|
||||
return 'allow-scripts allow-same-origin allow-forms allow-popups allow-presentation';
|
||||
},
|
||||
|
||||
getAllowedFeatures(): string {
|
||||
return 'autoplay; fullscreen; picture-in-picture; encrypted-media';
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,58 @@
|
||||
import type { StreamingProvider, StreamingServer, StreamRequest } from '../types';
|
||||
|
||||
const VIDLINK_SERVERS: StreamingServer[] = [
|
||||
{
|
||||
id: 'vidlink-default',
|
||||
name: 'VidLink (Default)',
|
||||
provider: 'vidlink',
|
||||
supportsEvents: true,
|
||||
supportsProgress: true,
|
||||
},
|
||||
{
|
||||
id: 'vidlink-jw',
|
||||
name: 'VidLink (JW Player)',
|
||||
provider: 'vidlink',
|
||||
serverIndex: 2,
|
||||
supportsEvents: true,
|
||||
supportsProgress: true,
|
||||
},
|
||||
];
|
||||
|
||||
export const vidlinkProvider: StreamingProvider = {
|
||||
id: 'vidlink',
|
||||
name: 'VidLink',
|
||||
servers: VIDLINK_SERVERS,
|
||||
|
||||
getStreamUrl(request: StreamRequest, server: StreamingServer): string {
|
||||
const params = new URLSearchParams();
|
||||
params.set('autoplay', 'true');
|
||||
params.set('title', 'false');
|
||||
params.set('poster', 'true');
|
||||
params.set('nextbutton', 'true');
|
||||
|
||||
if (server.serverIndex === 2) {
|
||||
params.set('player', 'jw');
|
||||
}
|
||||
|
||||
if (request.startAt && request.startAt > 0) {
|
||||
params.set('startAt', String(Math.floor(request.startAt)));
|
||||
}
|
||||
|
||||
let basePath: string;
|
||||
if (request.type === 'movie') {
|
||||
basePath = `/movie/${request.tmdbId}`;
|
||||
} else {
|
||||
basePath = `/tv/${request.tmdbId}/${request.season}/${request.episode}`;
|
||||
}
|
||||
|
||||
return `https://vidlink.pro${basePath}?${params.toString()}`;
|
||||
},
|
||||
|
||||
getSandboxPolicy(): string {
|
||||
return 'allow-scripts allow-same-origin allow-forms allow-popups allow-presentation';
|
||||
},
|
||||
|
||||
getAllowedFeatures(): string {
|
||||
return 'autoplay; fullscreen; picture-in-picture; encrypted-media';
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,304 @@
|
||||
import type {
|
||||
StreamingProvider,
|
||||
StreamingServer,
|
||||
StreamRequest,
|
||||
StreamResponse,
|
||||
StreamError,
|
||||
WatchProgressData,
|
||||
AutoMarkWatchedConfig,
|
||||
PlayerEvent,
|
||||
} from './types';
|
||||
import { vidlinkProvider, vidkingProvider, anyembedProvider } from './providers';
|
||||
|
||||
const STORAGE_KEYS = {
|
||||
PREFERRED_SERVER: 'showy_preferred_server',
|
||||
WATCH_PROGRESS: 'showy_watch_progress',
|
||||
AUTO_MARK_WATCHED: 'showy_auto_mark_watched',
|
||||
AUTO_MARK_PROMPT_SHOWN: 'showy_auto_mark_prompt_shown',
|
||||
WATCH_LOGS: 'showy_watch_logs',
|
||||
} as const;
|
||||
|
||||
/** All registered streaming providers */
|
||||
const providers: StreamingProvider[] = [
|
||||
vidlinkProvider,
|
||||
vidkingProvider,
|
||||
anyembedProvider,
|
||||
];
|
||||
|
||||
/** Get all available servers from all providers */
|
||||
export function getAllServers(): StreamingServer[] {
|
||||
return providers.flatMap((p) => p.servers);
|
||||
}
|
||||
|
||||
/** Get a provider by server ID */
|
||||
export function getProviderForServer(serverId: string): StreamingProvider | undefined {
|
||||
return providers.find((p) => p.servers.some((s) => s.id === serverId));
|
||||
}
|
||||
|
||||
/** Get a server by ID */
|
||||
export function getServerById(serverId: string): StreamingServer | undefined {
|
||||
return getAllServers().find((s) => s.id === serverId);
|
||||
}
|
||||
|
||||
/** Build a stream URL for the given request and server */
|
||||
export function getStreamUrl(request: StreamRequest, server: StreamingServer): StreamResponse | StreamError {
|
||||
const provider = getProviderForServer(server.id);
|
||||
if (!provider) {
|
||||
return {
|
||||
server,
|
||||
message: 'Provider not found for this server',
|
||||
code: 'UNAVAILABLE',
|
||||
};
|
||||
}
|
||||
|
||||
// Validate the request
|
||||
if (!request.tmdbId && !request.imdbId) {
|
||||
return {
|
||||
server,
|
||||
message: 'A valid TMDB or IMDB ID is required',
|
||||
code: 'INVALID_ID',
|
||||
};
|
||||
}
|
||||
|
||||
if (request.type === 'tv' && (!request.season || !request.episode)) {
|
||||
return {
|
||||
server,
|
||||
message: 'Season and episode numbers are required for TV shows',
|
||||
code: 'MISSING_EPISODE',
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
const url = provider.getStreamUrl(request, server);
|
||||
return { url, server, request };
|
||||
} catch {
|
||||
return {
|
||||
server,
|
||||
message: 'Failed to build stream URL',
|
||||
code: 'UNKNOWN',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/** Check if a response is an error */
|
||||
export function isStreamError(result: StreamResponse | StreamError): result is StreamError {
|
||||
return 'code' in result;
|
||||
}
|
||||
|
||||
/** Get iframe sandbox policy for a server */
|
||||
export function getServerSandboxPolicy(serverId: string): string {
|
||||
const provider = getProviderForServer(serverId);
|
||||
return provider?.getSandboxPolicy() ?? 'allow-scripts allow-same-origin';
|
||||
}
|
||||
|
||||
/** Get iframe allowed features for a server */
|
||||
export function getServerAllowedFeatures(serverId: string): string {
|
||||
const provider = getProviderForServer(serverId);
|
||||
return provider?.getAllowedFeatures() ?? 'autoplay; fullscreen';
|
||||
}
|
||||
|
||||
// --- Persistence ---
|
||||
|
||||
/** Get the user's preferred server ID */
|
||||
export function getPreferredServerId(): string | null {
|
||||
try {
|
||||
return localStorage.getItem(STORAGE_KEYS.PREFERRED_SERVER);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** Save the user's preferred server ID */
|
||||
export function setPreferredServerId(serverId: string): void {
|
||||
try {
|
||||
localStorage.setItem(STORAGE_KEYS.PREFERRED_SERVER, serverId);
|
||||
} catch {
|
||||
// Storage not available
|
||||
}
|
||||
}
|
||||
|
||||
/** Get the preferred server, falling back to first available */
|
||||
export function getPreferredServer(): StreamingServer {
|
||||
const preferredId = getPreferredServerId();
|
||||
if (preferredId) {
|
||||
const server = getServerById(preferredId);
|
||||
if (server) return server;
|
||||
}
|
||||
return getAllServers()[0];
|
||||
}
|
||||
|
||||
// --- Watch Progress ---
|
||||
|
||||
/** Get all watch progress data */
|
||||
export function getWatchProgress(): Record<string, WatchProgressData> {
|
||||
try {
|
||||
const data = localStorage.getItem(STORAGE_KEYS.WATCH_PROGRESS);
|
||||
return data ? JSON.parse(data) : {};
|
||||
} catch {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
/** Get watch progress for a specific entry */
|
||||
export function getEntryWatchProgress(tmdbId: number): WatchProgressData | null {
|
||||
const progress = getWatchProgress();
|
||||
return progress[String(tmdbId)] || null;
|
||||
}
|
||||
|
||||
/** Save watch progress for an entry */
|
||||
export function saveWatchProgress(data: WatchProgressData): void {
|
||||
try {
|
||||
const progress = getWatchProgress();
|
||||
progress[String(data.tmdbId)] = { ...data, lastUpdated: Date.now() };
|
||||
localStorage.setItem(STORAGE_KEYS.WATCH_PROGRESS, JSON.stringify(progress));
|
||||
} catch {
|
||||
// Storage not available
|
||||
}
|
||||
}
|
||||
|
||||
/** Get the episode progress key */
|
||||
function getEpisodeKey(season: number, episode: number): string {
|
||||
return `s${season}e${episode}`;
|
||||
}
|
||||
|
||||
/** Update progress from a player event */
|
||||
export function updateProgressFromEvent(
|
||||
event: PlayerEvent,
|
||||
title: string,
|
||||
posterPath?: string
|
||||
): void {
|
||||
const existing = getEntryWatchProgress(event.tmdbId);
|
||||
|
||||
const data: WatchProgressData = {
|
||||
tmdbId: event.tmdbId,
|
||||
type: event.mediaType,
|
||||
title,
|
||||
posterPath,
|
||||
watched: event.currentTime,
|
||||
duration: event.duration,
|
||||
lastUpdated: Date.now(),
|
||||
...(existing?.showProgress ? { showProgress: existing.showProgress } : {}),
|
||||
};
|
||||
|
||||
if (event.mediaType === 'tv' && event.season && event.episode) {
|
||||
data.lastSeasonWatched = event.season;
|
||||
data.lastEpisodeWatched = event.episode;
|
||||
const key = getEpisodeKey(event.season, event.episode);
|
||||
data.showProgress = {
|
||||
...(data.showProgress || {}),
|
||||
[key]: {
|
||||
season: event.season,
|
||||
episode: event.episode,
|
||||
watched: event.currentTime,
|
||||
duration: event.duration,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
saveWatchProgress(data);
|
||||
}
|
||||
|
||||
// --- Auto Mark Watched ---
|
||||
|
||||
/** Get auto-mark-watched config */
|
||||
export function getAutoMarkWatchedConfig(): AutoMarkWatchedConfig {
|
||||
try {
|
||||
const data = localStorage.getItem(STORAGE_KEYS.AUTO_MARK_WATCHED);
|
||||
return data ? JSON.parse(data) : { enabled: false, threshold: 90 };
|
||||
} catch {
|
||||
return { enabled: false, threshold: 90 };
|
||||
}
|
||||
}
|
||||
|
||||
/** Save auto-mark-watched config */
|
||||
export function setAutoMarkWatchedConfig(config: AutoMarkWatchedConfig): void {
|
||||
try {
|
||||
localStorage.setItem(STORAGE_KEYS.AUTO_MARK_WATCHED, JSON.stringify(config));
|
||||
} catch {
|
||||
// Storage not available
|
||||
}
|
||||
}
|
||||
|
||||
/** Check if the auto-mark prompt has been shown */
|
||||
export function hasAutoMarkPromptBeenShown(): boolean {
|
||||
try {
|
||||
return localStorage.getItem(STORAGE_KEYS.AUTO_MARK_PROMPT_SHOWN) === 'true';
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/** Mark that the auto-mark prompt has been shown */
|
||||
export function markAutoMarkPromptShown(): void {
|
||||
try {
|
||||
localStorage.setItem(STORAGE_KEYS.AUTO_MARK_PROMPT_SHOWN, 'true');
|
||||
} catch {
|
||||
// Storage not available
|
||||
}
|
||||
}
|
||||
|
||||
// --- Watch Logs (for future DB backup) ---
|
||||
|
||||
interface WatchLog {
|
||||
tmdbId: number;
|
||||
type: 'movie' | 'tv';
|
||||
title: string;
|
||||
season?: number;
|
||||
episode?: number;
|
||||
completedAt: number;
|
||||
duration: number;
|
||||
}
|
||||
|
||||
/** Log a completed watch event */
|
||||
export function logWatchCompleted(log: WatchLog): void {
|
||||
try {
|
||||
const logsData = localStorage.getItem(STORAGE_KEYS.WATCH_LOGS);
|
||||
const logs: WatchLog[] = logsData ? JSON.parse(logsData) : [];
|
||||
logs.push(log);
|
||||
// Keep last 500 logs max
|
||||
const trimmed = logs.slice(-500);
|
||||
localStorage.setItem(STORAGE_KEYS.WATCH_LOGS, JSON.stringify(trimmed));
|
||||
} catch {
|
||||
// Storage not available
|
||||
}
|
||||
}
|
||||
|
||||
/** Get all watch logs */
|
||||
export function getWatchLogs(): WatchLog[] {
|
||||
try {
|
||||
const data = localStorage.getItem(STORAGE_KEYS.WATCH_LOGS);
|
||||
return data ? JSON.parse(data) : [];
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/** Check if an episode/movie is considered "watched" based on progress */
|
||||
export function isConsideredWatched(watched: number, duration: number, threshold = 90): boolean {
|
||||
if (duration <= 0) return false;
|
||||
const percent = (watched / duration) * 100;
|
||||
return percent >= threshold;
|
||||
}
|
||||
|
||||
// --- URL Validation ---
|
||||
|
||||
const ALLOWED_ORIGINS = [
|
||||
'https://vidlink.pro',
|
||||
'https://www.vidking.net',
|
||||
'https://anyembed.xyz',
|
||||
];
|
||||
|
||||
/** Validate that an embed URL is from an allowed origin */
|
||||
export function isValidEmbedUrl(url: string): boolean {
|
||||
try {
|
||||
const parsed = new URL(url);
|
||||
return ALLOWED_ORIGINS.some((origin) => parsed.origin === origin);
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/** Validate a message event origin for player events */
|
||||
export function isValidEventOrigin(origin: string): boolean {
|
||||
return ALLOWED_ORIGINS.includes(origin);
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
// Streaming system types
|
||||
|
||||
export type MediaType = 'movie' | 'tv';
|
||||
|
||||
export interface StreamingServer {
|
||||
id: string;
|
||||
name: string;
|
||||
/** Provider group this server belongs to */
|
||||
provider: string;
|
||||
/** Sub-server index (for providers with multiple servers) */
|
||||
serverIndex?: number;
|
||||
/** Whether this server supports player events */
|
||||
supportsEvents: boolean;
|
||||
/** Whether this server supports progress tracking */
|
||||
supportsProgress: boolean;
|
||||
}
|
||||
|
||||
export interface StreamRequest {
|
||||
type: MediaType;
|
||||
tmdbId: number;
|
||||
imdbId?: string;
|
||||
season?: number;
|
||||
episode?: number;
|
||||
/** Resume from this timestamp in seconds */
|
||||
startAt?: number;
|
||||
}
|
||||
|
||||
export interface StreamResponse {
|
||||
url: string;
|
||||
server: StreamingServer;
|
||||
request: StreamRequest;
|
||||
}
|
||||
|
||||
export interface StreamError {
|
||||
server: StreamingServer;
|
||||
message: string;
|
||||
code: 'INVALID_ID' | 'MISSING_EPISODE' | 'TIMEOUT' | 'NETWORK' | 'UNAVAILABLE' | 'UNKNOWN';
|
||||
}
|
||||
|
||||
export interface PlayerEvent {
|
||||
event: 'play' | 'pause' | 'seeked' | 'ended' | 'timeupdate';
|
||||
currentTime: number;
|
||||
duration: number;
|
||||
mediaType: MediaType;
|
||||
tmdbId: number;
|
||||
season?: number;
|
||||
episode?: number;
|
||||
progress?: number;
|
||||
}
|
||||
|
||||
export interface WatchProgressData {
|
||||
tmdbId: number;
|
||||
type: MediaType;
|
||||
title: string;
|
||||
posterPath?: string;
|
||||
/** Current playback position in seconds */
|
||||
watched: number;
|
||||
/** Total duration in seconds */
|
||||
duration: number;
|
||||
/** For TV shows */
|
||||
lastSeasonWatched?: number;
|
||||
lastEpisodeWatched?: number;
|
||||
/** Per-episode progress for TV shows */
|
||||
showProgress?: Record<string, {
|
||||
season: number;
|
||||
episode: number;
|
||||
watched: number;
|
||||
duration: number;
|
||||
}>;
|
||||
lastUpdated: number;
|
||||
}
|
||||
|
||||
export interface StreamingProvider {
|
||||
id: string;
|
||||
name: string;
|
||||
servers: StreamingServer[];
|
||||
/** Build the embed URL for the given request and server */
|
||||
getStreamUrl(request: StreamRequest, server: StreamingServer): string;
|
||||
/** Get iframe sandbox attributes */
|
||||
getSandboxPolicy(): string;
|
||||
/** Get allowed iframe features */
|
||||
getAllowedFeatures(): string;
|
||||
}
|
||||
|
||||
export interface AutoMarkWatchedConfig {
|
||||
enabled: boolean;
|
||||
/** Threshold percentage (0-100) to consider "finished" */
|
||||
threshold: number;
|
||||
}
|
||||
|
||||
export interface StreamingState {
|
||||
/** Currently selected server */
|
||||
activeServer: StreamingServer | null;
|
||||
/** All available servers */
|
||||
servers: StreamingServer[];
|
||||
/** Current stream URL */
|
||||
currentStreamUrl: string | null;
|
||||
/** Current request being played */
|
||||
currentRequest: StreamRequest | null;
|
||||
/** Loading state */
|
||||
isLoading: boolean;
|
||||
/** Error state */
|
||||
error: StreamError | null;
|
||||
/** Whether the player is visible */
|
||||
isPlayerOpen: boolean;
|
||||
/** Auto-mark-watched configuration */
|
||||
autoMarkWatched: AutoMarkWatchedConfig;
|
||||
/** Whether the auto-mark prompt has been shown */
|
||||
autoMarkPromptShown: boolean;
|
||||
}
|
||||
Reference in new issue
Block a user