removed my reformatting hassle, sorry.

This commit is contained in:
Jari Pennanen
2019-01-07 00:32:08 +02:00
committed by GitHub
parent b77685931d
commit f000c4700c
+59 -17
View File
@@ -1,7 +1,13 @@
import { Event, DetailedErrorCode } from "./cast.framework.events";
export as namespace messages;
export type UserAction = "LIKE" | "DISLIKE" | "FOLLOW" | "UNFOLLOW" | "FLAG" | "SKIP_AD";
export as namespace messages
export type UserAction =
| "LIKE"
| "DISLIKE"
| "FOLLOW"
| "UNFOLLOW"
| "FLAG"
| "SKIP_AD";
export type UserActionContext =
| "UNKNOWN_CONTEXT"
@@ -16,7 +22,12 @@ export type UserActionContext =
| "PLAYER"
| "COACH";
export type TextTrackType = "SUBTITLES" | "CAPTIONS" | "DESCRIPTIONS" | "CHAPTERS" | "METADATA";
export type TextTrackType =
| "SUBTITLES"
| "CAPTIONS"
| "DESCRIPTIONS"
| "CHAPTERS"
| "METADATA";
export type TextTrackWindowType = "NONE" | "NORMAL" | "ROUNDED_CORNERS";
@@ -33,7 +44,12 @@ export type TextTrackFontGenericFamily =
export type TextTrackFontStyle = "NORMAL" | "BOLD" | "BOLD_ITALIC" | "ITALIC";
export type TextTrackEdgeType = "NONE" | "OUTLINE" | "DROP_SHADOW" | "RAISED" | "DEPRESSED";
export type TextTrackEdgeType =
| "NONE"
| "OUTLINE"
| "DROP_SHADOW"
| "RAISED"
| "DEPRESSED";
export type Command =
| "PAUSE"
@@ -48,7 +64,11 @@ export type Command =
export type SeekResumeState = "PLAYBACK_START" | "PLAYBACK_PAUSE";
export type StreamingProtocolType = "UNKNOWN" | "MPEG_DASH" | "HLS" | "SMOOTH_STREAMING";
export type StreamingProtocolType =
| "UNKNOWN"
| "MPEG_DASH"
| "HLS"
| "SMOOTH_STREAMING";
export type StreamType = "BUFFERED" | "LIVE" | "NONE";
@@ -81,7 +101,11 @@ export type ErrorReason =
| "INVALID_REQUEST"
| "GENERIC_LOAD_ERROR";
export type RepeatMode = "REPEAT_OFF" | "REPEAT_ALL" | "REPEAT_SINGLE" | "REPEAT_ALL_AND_SHUFFLE";
export type RepeatMode =
| "REPEAT_OFF"
| "REPEAT_ALL"
| "REPEAT_SINGLE"
| "REPEAT_ALL_AND_SHUFFLE";
export type IdleReason = "CANCELLED" | "INTERRUPTED" | "FINISHED" | "ERROR";
@@ -136,7 +160,12 @@ export type MessageType =
export type PlayerState = "IDLE" | "PLAYING" | "PAUSED" | "BUFFERING";
export type QueueChangeType = "INSERT" | "REMOVE" | "ITEMS_CHANGE" | "UPDATE" | "NO_CHANGE";
export type QueueChangeType =
| "INSERT"
| "REMOVE"
| "ITEMS_CHANGE"
| "UPDATE"
| "NO_CHANGE";
export type QueueType =
| "ALBUM"
@@ -149,7 +178,12 @@ export type QueueType =
| "LIVE_TV"
| "MOVIE";
export type MetadataType = "GENERIC" | "MOVIE" | "TV_SHOW" | "MUSIC_TRACK" | "PHOTO";
export type MetadataType =
| "GENERIC"
| "MOVIE"
| "TV_SHOW"
| "MUSIC_TRACK"
| "PHOTO";
/**
* RefreshCredentials request data.
@@ -1385,13 +1419,13 @@ export interface MediaInformation {
/**
* The media metadata.
*/
metadata?:
| MediaMetadata
| GenericMediaMetadata
| MovieMediaMetadata
| MusicTrackMediaMetadata
| PhotoMediaMetadata
| TvShowMediaMetadata;
metadata:
| MediaMetadata
| GenericMediaMetadata
| MovieMediaMetadata
| MusicTrackMediaMetadata
| PhotoMediaMetadata
| PhotoMediaMetadata;
/**
* The stream type.
@@ -1487,7 +1521,12 @@ export interface LoadByEntityRequestData {
* attributes.
*/
export class LiveSeekableRange {
constructor(start?: number, end?: number, isMovingWindow?: boolean, isLiveDone?: boolean);
constructor(
start?: number,
end?: number,
isMovingWindow?: boolean,
isLiveDone?: boolean
);
/**
* A boolean value indicates whether a live stream is ended. If it is done;
@@ -1626,7 +1665,10 @@ export class FetchItemsRequestData extends RequestData {
* Extended media status information
*/
export class ExtendedMediaStatus {
constructor(playerState: MediaInformation, opt_media?: MediaInformation);
constructor(
playerState: MediaInformation,
opt_media?: MediaInformation
);
media: MediaInformation;