awake-lock
Version:
A comprehensive wake lock library for preventing device sleep with intelligent fallback strategies and exceptional performance
16 lines • 633 B
TypeScript
import { FallbackStrategy, WakeLockType, WakeLockSentinel, RequestOptions } from '../types';
export declare class VideoElementStrategy implements FallbackStrategy {
readonly name = "video-element";
readonly priority = 2;
private activeElements;
private mediaSource;
isSupported(): boolean;
request(type: WakeLockType, options?: RequestOptions): Promise<WakeLockSentinel>;
release(): Promise<void>;
private setupVideoElement;
private createMediaSource;
private createMinimalVideoData;
private createSentinel;
private releaseSentinel;
}
//# sourceMappingURL=VideoElementStrategy.d.ts.map