Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/videojs/video.js
/ functions
Functions
1,624 in github.com/videojs/video.js
⨍
Functions
1,624
◇
Types & classes
230
↓ 14 callers
Method
setCues_
* A setter for cues in this list. Creates getters * an an index for the cues. * * @param {Array} cues * An array of cues to set
src/js/tracks/text-track-cue-list.js:61
↓ 14 callers
Method
tech
* Return a reference to the current {@link Tech}. * It will print a warning by default about the danger of using the tech directly * but any arg
src/js/player.js:1359
↓ 14 callers
Method
toString
()
test/unit/utils/obj.test.js:7
↓ 14 callers
Method
volume
* Get or set the current volume of the media * * @param {number} [percentAsDecimal] * The new volume as a decimal percent: *
src/js/player.js:2816
↓ 13 callers
Method
add
* Adds a component to the array of focusable components. * * @param {Component} component * The `Component` to be added.
src/js/spatial-navigation.js:426
↓ 13 callers
Method
clear
* Clears array of focusable components.
src/js/spatial-navigation.js:457
↓ 13 callers
Method
liveCurrentTime
* get what we expect the live current time to be * * @return {number} * The expected live current time
src/js/live-tracker.js:317
↓ 13 callers
Function
silencePromise
(value)
src/js/utils/promise.js:24
↓ 13 callers
Method
userSeek_
* Prevent liveThreshold from causing seeks to seem like they * are not happening from a user perspective. * * @param {number} ct *
src/js/control-bar/progress-control/seek-bar.js:215
↓ 13 callers
Method
usingNativeControls
* Toggle native controls on/off. Native controls are the controls built into * devices (e.g. default iPhone controls) or other techs * (e.g. Vim
src/js/player.js:4184
↓ 12 callers
Method
clearTimeout
* Clears a timeout that gets created via `window.setTimeout` or * {@link Component#setTimeout}. If you set a timeout via {@link Component#setTimeou
src/js/component.js:1604
↓ 12 callers
Method
currentBreakpointClass
* Get the current breakpoint class name. * * @return {string} * The matching class name (e.g. `"vjs-layout-tiny"` or * `"v
src/js/player.js:5110
↓ 12 callers
Function
isFunction
(arg)
docs/legacy-docs/js/index.js:2268
↓ 12 callers
Method
isLive
* Determines if the player is live, only checks if this component * is tracking live playback or not * * @return {boolean} * Wheth
src/js/live-tracker.js:296
↓ 12 callers
Method
loadMedia
* Populate the player using a {@link Player~MediaObject|MediaObject}. * * @param {Player~MediaObject} media * A media object. *
src/js/player.js:5168
↓ 12 callers
Method
loadTech_
* Load/Create an instance of playback {@link Tech} including element * and API methods. Then append the `Tech` element in `Player` as a child. *
src/js/player.js:1183
↓ 12 callers
Function
log
* Logs plain debug messages. Similar to `console.log`. * * Due to [limitations](https://github.com/jsdoc3/jsdoc/issues/955#issuecomment-31382914
src/js/utils/create-logger.js:107
↓ 12 callers
Method
muted
()
test/unit/tech/tech-faker.js:124
↓ 12 callers
Method
name
* Get the `Component`s name. The name gets used to reference the `Component` * and is set during registration. * * @return {string} *
src/js/component.js:467
↓ 12 callers
Method
options
* Deep merge of options objects with new options. * > Note: When both `obj` and `options` contain properties whose values are objects. *
src/js/component.js:324
↓ 12 callers
Method
pause
* Pause the video playback
src/js/player.js:2486
↓ 11 callers
Method
controls
()
test/unit/tech/tech-faker.js:160
↓ 11 callers
Method
fluid
* A getter/setter/toggler for the vjs-fluid `className` on the `Player`. * * Turning this on will turn off fill mode. * * @param {boolean}
src/js/player.js:995
↓ 11 callers
Method
getTech
* Get a `Tech` from the shared list by name. * * @param {string} name * `camelCase` or `TitleCase` name of the Tech to get * * @
src/js/tech/tech.js:1048
↓ 11 callers
Method
getTrackById
* Get a Track from the TrackList by a tracks id * * @param {string} id - the id of the track to get * @method getTrackById * @return {Trac
src/js/tracks/track-list.js:152
↓ 11 callers
Method
hasStarted
* Add/remove the vjs-has-started class * * * @param {boolean} request * - true: adds the class * - false: remove the clas
src/js/player.js:1724
↓ 11 callers
Method
playbackRate
()
test/unit/tech/tech-faker.js:78
↓ 11 callers
Method
requestFullscreen
* Increase the size of the video to full screen * In some browsers, full screen is not supported natively, so it enters * "full window mode", wh
src/js/player.js:2977
↓ 11 callers
Method
write
* Write the time to the tooltip DOM element. * * @param {string} content * The formatted time for the tooltip.
src/js/control-bar/progress-control/time-tooltip.js:126
↓ 10 callers
Function
decode
(elt)
docs/legacy-docs/js/index.js:1756
↓ 10 callers
Function
encode
(num)
docs/legacy-docs/js/index.js:1820
↓ 10 callers
Method
fill
* A getter/setter/toggler for the vjs-fill `className` on the `Player`. * * Turning this on will turn off fluid mode. * * @param {boolean}
src/js/player.js:1032
↓ 10 callers
Method
getPositions
* Retrieves the position and size information of the component's element. * * @return {Object} An object with `boundingClientRect` and `center`
src/js/component.js:1304
↓ 10 callers
Method
handleTechDoubleClick_
* Handle a double-click on the media element to enter/exit fullscreen, * or exit documentPictureInPicture mode * * @param {Event} event *
src/js/player.js:2019
↓ 10 callers
Function
isArray
(ar)
docs/legacy-docs/js/index.js:5617
↓ 10 callers
Function
isUndefined
(arg)
docs/legacy-docs/js/index.js:2280
↓ 10 callers
Method
liveWindow
* Get the live time window aka * the amount of time between seekable start and * live current time. * * @return {number} * The
src/js/live-tracker.js:278
↓ 10 callers
Method
load
()
test/unit/tech/tech-faker.js:116
↓ 10 callers
Method
play
* Attempt to begin playback at the first opportunity. * * @return {Promise|undefined} * Returns a promise if the browser supports Pro
src/js/player.js:2387
↓ 10 callers
Method
seekableStart
* A helper to get the player seekable start * so that we don't have to null check everywhere * * @return {number} * The earliest s
src/js/live-tracker.js:255
↓ 10 callers
Method
setInterval
* Creates a function that gets run every `x` milliseconds. This function is a wrapper * around `window.setInterval`. There are a few reasons to use
src/js/component.js:1633
↓ 10 callers
Method
show
* Show the `Component`s element if it is hidden by removing the * 'vjs-hidden' class name from it.
src/js/component.js:999
↓ 10 callers
Function
tryUpdateStyle
* Try to update the style of a DOM element. Some style changes will throw an error, * particularly in IE8. Those should be noops. * * @param {Eleme
src/js/tracks/text-track-display.js:73
↓ 9 callers
Method
any
(type, fn)
src/js/component.js:201
↓ 9 callers
Method
clearInterval
* Clears an interval that gets created via `window.setInterval` or * {@link Component#setInterval}. If you set an interval via {@link Component#set
src/js/component.js:1660
↓ 9 callers
Method
getIsAvailableToBeFocused
* Determine whether or not this component is currently visible/enabled/etc... * * @param {HTMLElement} el - The HTML element representing the co
src/js/component.js:1864
↓ 9 callers
Method
getPercent
* Get the percentage of media played so far. * * @return {number} * The percentage of media played so far (0 to 1).
src/js/control-bar/progress-control/seek-bar.js:264
↓ 9 callers
Method
getPlugins
* Gets an object containing multiple Video.js plugins. * * @param {Array} [names] * If provided, should be an array of plugin name
src/js/plugin.js:407
↓ 9 callers
Method
handleTechClick_
* Handle a click on the media element to play/pause * * @param {Event} event * the event that caused this function to trigger *
src/js/player.js:1979
↓ 9 callers
Function
isEvented
(object)
src/js/mixins/evented.js:41
↓ 9 callers
Method
scrubbing
* Sets or returns whether or not the user is "scrubbing". Scrubbing is * when the user has clicked the progress bar handle and is * dragging it
src/js/player.js:2526
↓ 9 callers
Method
seekableEnd
* A helper to get the player seekable end * so that we don't have to null check everywhere * * @return {number} * The furthest see
src/js/live-tracker.js:234
↓ 9 callers
Method
set
()
src/js/tracks/track.js:83
↓ 9 callers
Method
show
* Show the `Component`s element if it is hidden by removing the * 'vjs-hidden' class name from it only in browsers that support the Picture-in-Pict
src/js/control-bar/picture-in-picture-toggle.js:140
↓ 9 callers
Function
testStates
(statesObject, expectedEvents)
test/unit/tech/html5.test.js:698
↓ 9 callers
Method
toggleClass
* Add or remove a CSS class name from the component's element. * - `classToToggle` gets added when {@link Component#hasClass} would return false.
src/js/component.js:991
↓ 8 callers
Method
addSourceElement
()
test/unit/tech/tech-faker.js:114
↓ 8 callers
Method
addTextTrack
* A helper method for adding a {@link TextTrack} to our * {@link TextTrackList}. * * In addition to the W3C settings we allow adding addition
src/js/player.js:4745
↓ 8 callers
Function
canHandleSource
()
test/unit/tech/tech.test.js:22
↓ 8 callers
Method
closeable
* Check to see if the `ModalDialog` is closeable via the UI. * * @param {boolean} [value] * If given as a boolean, it will set the `
src/js/modal-dialog.js:291
↓ 8 callers
Method
content
* Gets or sets the modal content, which gets normalized before being * rendered into the DOM. * * This does not update the DOM or fill the mo
src/js/modal-dialog.js:427
↓ 8 callers
Function
debounced
()
src/js/utils/fn.js:113
↓ 8 callers
Method
deregisterPlugin
* De-register a Video.js plugin. * * @param {string} name * The name of the plugin to be de-registered. Must be a string that *
src/js/plugin.js:386
↓ 8 callers
Method
focus
* Focuses on a given component. * If the component is available to be focused, it focuses on the component. * If not, it attempts to find a suit
src/js/spatial-navigation.js:576
↓ 8 callers
Method
getTrackElementByTrack_
* Get an {@link HtmlTrackElement} from the `HtmlTrackElementList` given an * {@link TextTrack}. * * @param {TextTrack} track * The
src/js/tracks/html-track-element-list.js:73
↓ 8 callers
Function
isObject
(value)
src/js/utils/obj.js:93
↓ 8 callers
Method
lastVolume_
* Get the last volume, or set it * * @param {number} [percentAsDecimal] * The new last volume as a decimal percent: * - 0
src/js/player.js:2905
↓ 8 callers
Method
playbackRate
* Gets or sets the current playback rate. A playback rate of * 1.0 represents normal speed and 0.5 would indicate half-speed * playback, for ins
src/js/player.js:4506
↓ 8 callers
Function
progress
()
rollup.config.js:90
↓ 8 callers
Method
responsive
* Get or set a flag indicating whether or not this player should adjust * its UI based on its dimensions. * * @param {boolean} [value] *
src/js/player.js:5058
↓ 8 callers
Method
scrubbing
* Get whether we are scrubbing or not * * @abstract * * @see {Html5#scrubbing}
src/js/tech/tech.js:524
↓ 8 callers
Method
setIcon
* Adds an SVG icon element to another element or component. * * @param {string} iconName * The name of icon. A list of all the icon na
src/js/component.js:554
↓ 8 callers
Function
setTechFaker
(src)
test/unit/sourceset.test.js:837
↓ 8 callers
Function
stateful
* Applies {@link module:stateful~StatefulMixin|StatefulMixin} to a target * object. * * If the target object is {@link module:evented|evented} and
src/js/mixins/stateful.js:105
↓ 7 callers
Function
allocate
(that, length)
docs/legacy-docs/js/index.js:371
↓ 7 callers
Method
atLiveEdge
* Determines if currentTime is at the live edge and won't fall behind * on each seekableendchange * * @return {boolean} * Whether
src/js/live-tracker.js:307
↓ 7 callers
Method
autoplay
* Get or set the autoplay option. When this is a boolean it will * modify the attribute on the tech. When this is a string the attribute on * th
src/js/player.js:3960
↓ 7 callers
Method
canPlayType
* Check if the tech can support the given mime-type. * * The base tech does not support any type, but source handlers might * overwrite this.
src/js/tech/tech.js:954
↓ 7 callers
Function
confirmSetting
(prop, val)
test/unit/player.test.js:637
↓ 7 callers
Method
controls
* Get or set whether or not the controls are showing. * * @fires Player#controlsenabled * * @param {boolean} [bool] * - true to
src/js/player.js:4123
↓ 7 callers
Method
createEl
()
test/unit/component.test.js:927
↓ 7 callers
Method
crossOrigin
()
test/unit/tech/tech-faker.js:166
↓ 7 callers
Method
currentWidth
* Get the computed width of the component's element. * * Uses `window.getComputedStyle`. * * @return {number} * The computed wi
src/js/component.js:1278
↓ 7 callers
Function
error
* A generic error utility function. * @private * @param {String} type The error type. * @returns {E
docs/legacy-docs/js/index.js:3081
↓ 7 callers
Method
error
* Get or set an error on the Tech. * * @param {MediaError} [err] * Error to set on the Tech * * @return {MediaError|null} *
src/js/tech/tech.js:471
↓ 7 callers
Method
exitFullscreen
* Return the video to its normal size after having been in full screen mode * * @fires Player#fullscreenchange
src/js/player.js:3054
↓ 7 callers
Function
findObjectsInArray
* find indexes of a set of object in array of objects * based on some property value * generally useful for finding several objects * * @param {ar
docs/legacy-docs/api/js/doc-script.js:85
↓ 7 callers
Method
getDescendant
* Returns the descendant `Component` following the givent * descendant `names`. For instance ['foo', 'bar', 'baz'] would * try to get 'foo' on t
src/js/component.js:525
↓ 7 callers
Function
hooks
(type, fn)
src/js/utils/hooks.js:21
↓ 7 callers
Function
isNull
(arg)
docs/legacy-docs/js/index.js:5627
↓ 7 callers
Function
listen
(target, method, type, listener)
src/js/mixins/evented.js:219
↓ 7 callers
Method
log
()
test/unit/plugin-advanced.test.js:87
↓ 7 callers
Method
registerTech
* Registers a `Tech` into a shared list for videojs. * * @param {string} name * Name of the `Tech` to register. * * @param {Obje
src/js/tech/tech.js:1012
↓ 7 callers
Method
removeRemoteTextTrack
* Remove a remote {@link TextTrack} from the respective * {@link TextTrackList} and {@link HtmlTrackElementList}. * * @param {Object} track
src/js/player.js:4784
↓ 7 callers
Method
requestPictureInPicture
* Create a floating video window always on top of other windows so that users may * continue consuming media while they interact with other content
src/js/player.js:3232
↓ 7 callers
Method
selected
* Set the state for this menu item as selected or not. * * @param {boolean} selected * if the menu item is selected or not
src/js/menu/menu-item.js:124
↓ 7 callers
Method
stepForward
* Move to next (lower) menu item for keyboard users.
src/js/menu/menu.js:233
↓ 7 callers
Method
triggerSourceset
* A special function to trigger source set in a way that will allow player * to re-trigger if the player or tech are not ready yet. * * @fire
src/js/tech/tech.js:177
↓ 7 callers
Method
updateDisplayOverlay
* Updates the displayed TextTrack to be sure it overlays the video when a either * a {@link Player#texttrackchange} or a {@link Player#fullscreench
src/js/tracks/text-track-display.js:370
↓ 7 callers
Method
updateFocusableComponents
* Gets a set of focusable components. * * @return {Array} * Returns an array of focusable components.
src/js/spatial-navigation.js:251
← previous
next →
101–200 of 1,624, ranked by callers