@flowplayer/player
Version:
video player for the future
404 lines (400 loc) • 7.71 kB
JavaScript
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/**
* all events used by Flowplayer
*/
const /**
@public
* when a new player is inserted into the HTML
*/ MOUNT = "mount",
// native events that flowplayer use
/**
* @public
*/
RETRY = "retry",
// native events that flowplayer use
/**
* @public
*/
ERROR = "error",
/**
* @public
*/
CONTEXT_MENU = "contextmenu",
/**
* @public
*/
CLICK = "click",
/**
* @public
*/
DBL_CLICK = "dblclick",
/**
* @public
*/
KEYUP = "keyup",
/**
* @public
*/
KEYDOWN = "keydown",
/**
* @public
*/
LOAD = "load",
/**
* @public
*/
MOUSE_ENTER = "mouseenter",
/**
* @public
*/
MOUSE_LEAVE = "mouseleave",
/**
* @public
*/
MOUSE_UP = "mouseup",
/**
* @public
*/
MOUSE_DOWN = "mousedown",
/**
* @public
*/
MOUSE_MOVE = "mousemove",
/**
* @public
*/
TOUCH_START = "touchstart",
/**
* @public
*/
TOUCH_MOVE = "touchmove",
/**
* @public
*/
TOUCH_END = "touchend",
/**
* @public
*/
TOUCH_CANCEL = "touchcancel",
/**
* @public
*/
RESIZE = "resize",
/**
* @public
*/
SCROLL = "scroll",
/**
* @public
*/
FULLSCREEN_ENTER = "fullscreenenter",
/**
* @public
*/
FULLSCREEN_EXIT = "fullscreenexit",
/**
* @public
*/
FULLSCREEN_CHANGE = "fullscreenchange",
/**
* @public
* general video events flowplayer uses internally
* https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
*/
METADATA = "loadedmetadata",
/**
* @public
*/
DATA = "loadeddata",
/**
* @public
*/
PROGRESS = "progress",
/**
* @public
*/
TIME_UPDATE = "timeupdate",
/**
* @public
*/
LOAD_START = "loadstart",
/**
* @public
*/
VOLUME_CHANGE = "volumechange",
/**
* @public
*/
PAUSE = "pause",
/**
* @public
*/
PLAYING = "playing",
/**
* @public
*/
PLAY = "play",
/**
* @public
*/
WAITING = "waiting",
/**
* @public
*/
CAN_PLAY = "canplay",
/**
* @public
*/
ENDED = "ended",
/**
* @public
*/
SEEKED = "seeked",
/**
* @public
*/
SEEKING = "seeking",
/**
* @public
*/
DURATION_CHANGE = "durationchange",
/**
* @public
* when a player enters the viewpoint
*/
VIEW_ENTER = "viewenter",
/**
* @public
* when a player leaves the viewport
*/
VIEW_LEAVE = "viewleave",
/**
* @public
* emitted when a valid source is found prior to mounting
*/
SOURCE = "src",
/**
* @public
* emitted when it is safe to clean up a fp instance
*/
REAP = "reap",
/**
* @public
* emitted whenever a list of qualities has been made available
* when index 0 is the highest quality and index 0+N is the lowest
*/
QUALITIES = "qualities",
/**
* @public
* emitted whenever the media changes quality
*/
QUALITY_CHANGE = "qualitychange",
/**
* @public
* emitted whenever multiple video tracks are detected
*/
VIDEO_TRACKS = "videoTracks", // TODO move to VTSEL plugin
/**
* @public
* @deprecated please use Qsel.events.SET_QUALITY
*/
SET_QUALITY = "quality:set",
/**
* @public
* emitted when a video track is selected
*/
VIDEO_TRACK_SELECT = "tracks:video:select", // TODO move to VTSEL plugin
/**
* @deprecated please use Endscreen.events.RECOMMENDATIONS_READY / flowplayer.endscreen.events.RECOMMENDATIONS_READY
**/
/**
* @public
*/
RECOMMENDATIONS_READY = "recommendationsready",
/**
* @public
*/
LANDSCAPE = "landscape", // TODO not an event
/**
* @public
*/
PORTRAIT = "portrait", // TODO: not an event
/**
* @public
* when the player has started playing dvr content
*/
DVR = "dvr",
/**
* @public
* when src is a livestream
*/
LIVE = "live",
/**
* @public
* emitted when an Error recovery is attempted
*/
RECOVER = "recover",
/**
* @internal
*/
SEEK_QUEUED = "seek:queued",
/**
* @internal
*/
SEEK_CANCEL = "seek:cancel",
/**
* @internal
*/
PLUGIN_REGISTERED = "plugin:registered",
/**
* @internal
*/
REMOTE_SESSION_STARTED = "remotesession:started", // TODO move to Chromecast plugin
/**
* @internal
*/
REMOTE_SESSION_ENDED = "remotesession:ended", // TODO move to Chromecast plugin
/**
* @internal
*/
INTERSECTIONCHANGE = "intersectionchange",
/**
* @internal
*/
WEBKIT_NEEDKEY = "webkitneedkey",
/**
* @internal
*/
RENDER_PLUGIN = "renderplugin",
/**
* @internal
*/
AUDIO_ONLY_SOURCE = "audioonlysource",
/**
* @internal
* error that is fatal in a sense where nothing can be done and
* player should be destroyed
*/
NON_RECOVERABLE_ERROR = "error:fatal",
/**
* @internal
* emitted whenever config is changed
*/
CONFIG = "config",
/**
* @internal
* Player (UI) state changed
*/
STATE = "state",
/**
* @internal
* Custom video events
*/
BEFORE_PLAY = "beforeplay",
/**
* @internal
*/
BEFORE_PAUSE = "beforepause",
/**
* @internal
* Emitted to normalize that content has started loading across various browsers & plugin combinations for analytics timing
*/
CONTENT_REAL_LOAD_START = "content:loadstart",
/**
* @public
* @deprecated
* cuepoints parsing is asynchronous
* you cannot rely on them existing until
* this event is emitted
*/
CUEPOINTS = "cuepoints",
/**
* @public
* @deprecated
* when a cuepoint is active
*/
CUEPOINT_START = "cuepointstart",
/**
* @public
* @deprecated
* when a cuepoint becomes inactive
*/
CUEPOINT_END = "cuepointend",
/**
* @public
* emitted to handle playback related errors
*/
STANDARD_ERROR = "flowplayer:error";
exports.AUDIO_ONLY_SOURCE = AUDIO_ONLY_SOURCE;
exports.BEFORE_PAUSE = BEFORE_PAUSE;
exports.BEFORE_PLAY = BEFORE_PLAY;
exports.CAN_PLAY = CAN_PLAY;
exports.CLICK = CLICK;
exports.CONFIG = CONFIG;
exports.CONTENT_REAL_LOAD_START = CONTENT_REAL_LOAD_START;
exports.CONTEXT_MENU = CONTEXT_MENU;
exports.CUEPOINTS = CUEPOINTS;
exports.CUEPOINT_END = CUEPOINT_END;
exports.CUEPOINT_START = CUEPOINT_START;
exports.DATA = DATA;
exports.DBL_CLICK = DBL_CLICK;
exports.DURATION_CHANGE = DURATION_CHANGE;
exports.DVR = DVR;
exports.ENDED = ENDED;
exports.ERROR = ERROR;
exports.FULLSCREEN_CHANGE = FULLSCREEN_CHANGE;
exports.FULLSCREEN_ENTER = FULLSCREEN_ENTER;
exports.FULLSCREEN_EXIT = FULLSCREEN_EXIT;
exports.INTERSECTIONCHANGE = INTERSECTIONCHANGE;
exports.KEYDOWN = KEYDOWN;
exports.KEYUP = KEYUP;
exports.LANDSCAPE = LANDSCAPE;
exports.LIVE = LIVE;
exports.LOAD = LOAD;
exports.LOAD_START = LOAD_START;
exports.METADATA = METADATA;
exports.MOUNT = MOUNT;
exports.MOUSE_DOWN = MOUSE_DOWN;
exports.MOUSE_ENTER = MOUSE_ENTER;
exports.MOUSE_LEAVE = MOUSE_LEAVE;
exports.MOUSE_MOVE = MOUSE_MOVE;
exports.MOUSE_UP = MOUSE_UP;
exports.NON_RECOVERABLE_ERROR = NON_RECOVERABLE_ERROR;
exports.PAUSE = PAUSE;
exports.PLAY = PLAY;
exports.PLAYING = PLAYING;
exports.PLUGIN_REGISTERED = PLUGIN_REGISTERED;
exports.PORTRAIT = PORTRAIT;
exports.PROGRESS = PROGRESS;
exports.QUALITIES = QUALITIES;
exports.QUALITY_CHANGE = QUALITY_CHANGE;
exports.REAP = REAP;
exports.RECOMMENDATIONS_READY = RECOMMENDATIONS_READY;
exports.RECOVER = RECOVER;
exports.REMOTE_SESSION_ENDED = REMOTE_SESSION_ENDED;
exports.REMOTE_SESSION_STARTED = REMOTE_SESSION_STARTED;
exports.RENDER_PLUGIN = RENDER_PLUGIN;
exports.RESIZE = RESIZE;
exports.RETRY = RETRY;
exports.SCROLL = SCROLL;
exports.SEEKED = SEEKED;
exports.SEEKING = SEEKING;
exports.SEEK_CANCEL = SEEK_CANCEL;
exports.SEEK_QUEUED = SEEK_QUEUED;
exports.SET_QUALITY = SET_QUALITY;
exports.SOURCE = SOURCE;
exports.STANDARD_ERROR = STANDARD_ERROR;
exports.STATE = STATE;
exports.TIME_UPDATE = TIME_UPDATE;
exports.TOUCH_CANCEL = TOUCH_CANCEL;
exports.TOUCH_END = TOUCH_END;
exports.TOUCH_MOVE = TOUCH_MOVE;
exports.TOUCH_START = TOUCH_START;
exports.VIDEO_TRACKS = VIDEO_TRACKS;
exports.VIDEO_TRACK_SELECT = VIDEO_TRACK_SELECT;
exports.VIEW_ENTER = VIEW_ENTER;
exports.VIEW_LEAVE = VIEW_LEAVE;
exports.VOLUME_CHANGE = VOLUME_CHANGE;
exports.WAITING = WAITING;
exports.WEBKIT_NEEDKEY = WEBKIT_NEEDKEY;