mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
71 lines
2.9 KiB
TypeScript
71 lines
2.9 KiB
TypeScript
// Type definitions for non-npm package chromecast-caf-receiver 3.x
|
|
// Project: https://github.com/googlecast
|
|
// Definitions by: Sergio Arbeo <https://github.com/Serabe>
|
|
// Craig Bruce <https://github.com/craigrbruce>
|
|
// Brandon Risell <https://github.com/brandonrisell>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.1
|
|
|
|
/// <reference path="./cast.framework.d.ts" />
|
|
/// <reference path="./cast.framework.breaks.d.ts" />
|
|
/// <reference path="./cast.framework.events.d.ts" />
|
|
/// <reference path="./cast.framework.messages.d.ts" />
|
|
/// <reference path="./cast.framework.system.d.ts" />
|
|
/// <reference path="./cast.framework.ui.d.ts" />
|
|
|
|
import * as framework from './cast.framework';
|
|
import { PlayerDataChangedEvent } from './cast.framework.ui';
|
|
import {
|
|
Event,
|
|
Id3Event,
|
|
ErrorEvent,
|
|
MediaElementEvent,
|
|
MediaPauseEvent,
|
|
BitrateChangedEvent,
|
|
BreaksEvent,
|
|
BufferingEvent,
|
|
CacheItemEvent,
|
|
CacheLoadedEvent,
|
|
ClipEndedEvent,
|
|
EmsgEvent,
|
|
MediaStatusEvent,
|
|
CustomStateEvent,
|
|
MediaInformationChangedEvent,
|
|
MediaFinishedEvent,
|
|
LoadEvent,
|
|
SegmentDownloadedEvent,
|
|
RequestEvent,
|
|
LiveStatusEvent,
|
|
} from './cast.framework.events';
|
|
|
|
export as namespace cast;
|
|
export { framework };
|
|
|
|
declare global {
|
|
const cast: { framework: typeof framework };
|
|
|
|
type EventHandler = (event: Event) => void;
|
|
type Id3EventHandler = (event: Id3Event) => void;
|
|
type ErrorEventHandler = (event: ErrorEvent) => void;
|
|
type MediaElementEventHandler = (event: MediaElementEvent) => void;
|
|
type PauseEventHandler = (event: MediaPauseEvent) => void;
|
|
type BitrateChangedEventHandler = (event: BitrateChangedEvent) => void;
|
|
type BreaksEventHandler = (event: BreaksEvent) => void;
|
|
type BufferingEventHandler = (event: BufferingEvent) => void;
|
|
type CacheLoadedEventHandler = (event: CacheLoadedEvent) => void;
|
|
type CacheItemEventHandler = (event: CacheItemEvent) => void;
|
|
type ClipEndedEventHandler = (event: ClipEndedEvent) => void;
|
|
type EmsgEventHandler = (event: EmsgEvent) => void;
|
|
type MediaStatusEventHandler = (event: MediaStatusEvent) => void;
|
|
type CustomStateEventHandler = (event: CustomStateEvent) => void;
|
|
type MediaInformationChangedEventHandler = (event: MediaInformationChangedEvent) => void;
|
|
type MediaFinishedEventHandler = (event: MediaFinishedEvent) => void;
|
|
type LoadEventHandler = (event: LoadEvent) => void;
|
|
type SegmentDownloadedEventHandler = (event: SegmentDownloadedEvent) => void;
|
|
type RequestEventHandler = (event: RequestEvent) => void;
|
|
type LiveStatusEventHandler = (event: LiveStatusEvent) => void;
|
|
type PlayerDataChangedEventHandler = (event: PlayerDataChangedEvent) => void;
|
|
type RequestHandler = (request: framework.NetworkRequestInfo) => void;
|
|
type BinaryHandler = (data: Uint8Array) => Uint8Array;
|
|
}
|