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
↓ 6 callers
Function
assertion
(actual, expected, actualArr, expectedArr, type)
test/unit/tech/middleware.test.js:74
↓ 6 callers
Method
breakpoints
* Get or set breakpoints on the player. * * Calling this method with an object or `true` will remove any previous * custom breakpoints and st
src/js/player.js:5027
↓ 6 callers
Method
canPlayType
(type)
test/unit/tech/tech-faker.js:174
↓ 6 callers
Method
cancelNamedAnimationFrame
* Cancels a current named animation frame if it exists. * * @param {string} name * The name of the requestAnimationFrame to cancel.
src/js/component.js:1751
↓ 6 callers
Function
checked
(length)
docs/legacy-docs/js/index.js:388
↓ 6 callers
Function
cleanup
(item)
test/unit/tracks/text-track-list-converter.test.js:16
↓ 6 callers
Function
constructColor
(color, opacity)
src/js/tracks/text-track-display.js:39
↓ 6 callers
Function
copyObj
* get a copy of (rather than reference to) an object * * @param {object} obj - the object you want a copy * @return {object} the copy
docs/legacy-docs/api/js/doc-script.js:47
↓ 6 callers
Function
createEl
(tagName = 'div', properties = {}, attributes = {}, content)
src/js/utils/dom.js:136
↓ 6 callers
Method
currentDimension
* Get the computed width or the height of the component's element. * * Uses `window.getComputedStyle`. * * @param {string} widthOrHeight
src/js/component.js:1217
↓ 6 callers
Method
duration
* Normally gets the length in time of the video in seconds; * in all but the rarest use cases an argument will NOT be passed to the method *
src/js/player.js:2607
↓ 6 callers
Method
exitPictureInPicture
* Exit Picture-in-Picture mode. * * @see [Spec]{@link https://wicg.github.io/picture-in-picture} * * @fires Player#leavepictureinpicture
src/js/player.js:3294
↓ 6 callers
Function
findClassObjects
* finds the objects in the doc data for a fileName * * @param {array} arr - the array of objects to search * @param {string} filename - the filenam
docs/legacy-docs/api/js/doc-script.js:168
↓ 6 callers
Method
getCache
* Get object for cached values. * * @return {Object} * get the current object cache
src/js/player.js:2260
↓ 6 callers
Method
getIsFocusable
* Determine whether or not this component can be considered as focusable component. * * @param {HTMLElement} el - The HTML element representing
src/js/component.js:1851
↓ 6 callers
Method
getValues
* Gets an object of text track settings (or null). * * @return {Object} * An object with config values parsed from the DOM or localSt
src/js/tracks/text-track-settings.js:374
↓ 6 callers
Method
getVideoPlaybackQuality
* Gets available media playback quality metrics as specified by the W3C's Media * Playback Quality API. * * @see [Spec]{@link https://wicg.gi
src/js/player.js:4809
↓ 6 callers
Method
handleClick
()
test/unit/clickable-component.test.js:48
↓ 6 callers
Method
hasPlugin
(name)
src/js/player.js:5388
↓ 6 callers
Function
isItemInArray
* determines whether specified item is in an array * * @param {array} arr - array to check * @param {string} item - to check for * @return {boolea
docs/legacy-docs/api/js/doc-script.js:31
↓ 6 callers
Function
isString
(arg)
docs/legacy-docs/js/index.js:5642
↓ 6 callers
Function
makeList
(classArr, parentArr, member, list)
docs/legacy-docs/api/js/doc-script.js:335
↓ 6 callers
Function
makeList
(classArr, parentArr, member, list)
docs/legacy-docs/api/js/api-docs.js:369
↓ 6 callers
Method
move
* Navigates to the next focusable component based on the specified direction. * * @param {string} direction 'up', 'down', 'left', 'right'
src/js/spatial-navigation.js:473
↓ 6 callers
Function
objectToString
(o)
docs/legacy-docs/js/index.js:5698
↓ 6 callers
Method
pastSeekEnd
* The number of seconds that have occurred after seekable end * changed. This will be reset to 0 once seekable end changes. * * @return {numb
src/js/live-tracker.js:328
↓ 6 callers
Method
poster
* Get or set the poster image source url * * @fires Player#posterchange * * @param {string} [src] * Poster image source URL *
src/js/player.js:4051
↓ 6 callers
Function
push
(v)
docs/legacy-docs/js/index.js:1792
↓ 6 callers
Method
queueTrigger
(event)
src/js/event-target.js:127
↓ 6 callers
Method
removeCue
* Remove a cue from our internal list * * @param {TextTrack~Cue} removeCue * The cue to remove from our internal list
src/js/tracks/text-track.js:440
↓ 6 callers
Method
stepBack
* Move to previous (higher) menu item for keyboard users.
src/js/menu/menu.js:245
↓ 6 callers
Function
throttled
(...args)
src/js/utils/fn.js:66
↓ 6 callers
Method
toJSON
* returns a JavaScript object representing the current track * information. **DOES not return it as JSON** * * @return {Object} *
src/js/player.js:4891
↓ 6 callers
Method
unpressButton
* Take the current `MenuButton` out of a pressed state.
src/js/menu/menu-button.js:404
↓ 6 callers
Method
usingPlugin
(name)
src/js/player.js:5407
↓ 5 callers
Method
addItem
* Add a {@link MenuItem} to the menu. * * @param {Object|string} component * The name or instance of the `MenuItem` to add. *
src/js/menu/menu.js:102
↓ 5 callers
Method
addTrackElement_
* Add an {@link HtmlTrackElement} to the `HtmlTrackElementList` * * @param {HtmlTrackElement} trackElement * The track element to add
src/js/tracks/html-track-element-list.js:44
↓ 5 callers
Method
behindLiveEdge
* If we are currently behind the live edge, aka currentTime will be * behind on a seekableendchange * * @return {boolean} * If we
src/js/live-tracker.js:345
↓ 5 callers
Method
currentSrc
()
test/unit/tech/tech-faker.js:118
↓ 5 callers
Method
dimension
* A getter/setter for the `Player`'s width & height. * * @param {string} dimension * This string can be: * - 'width' *
src/js/player.js:956
↓ 5 callers
Method
enable
* Enable the `Button` element so that it can be activated or clicked. Use this with * {@link Button#disable}.
src/js/button.js:90
↓ 5 callers
Function
getAbsoluteURL
(url)
src/js/utils/url.js:32
↓ 5 callers
Method
getCueById
* Get a `TextTrackCue` that is currently in the `TextTrackCueList` by id. * * @param {string} id * The id of the cue that should be se
src/js/tracks/text-track-cue-list.js:97
↓ 5 callers
Method
getCurrentComponent
* Gets the currently focused component from the list of focusable components. * If a target element is provided, it uses that element to find the c
src/js/spatial-navigation.js:406
↓ 5 callers
Method
getMedia
* Get a clone of the current {@link Player~MediaObject} for this player. * * If the `loadMedia` method has not been used, will attempt to return
src/js/player.js:5224
↓ 5 callers
Function
getMenuItemByLanguage
(items, language)
test/unit/tracks/text-track-display.test.js:21
↓ 5 callers
Function
getMockEscapeEvent
()
test/unit/modal-dialog.test.js:8
↓ 5 callers
Method
getProgress
* Get the percentage of the bar that should be filled * but clamped and rounded. * * @return {number} * percentage filled that the
src/js/slider/slider.js:277
↓ 5 callers
Method
isAudio
* Gets or sets the audio flag * * @param {boolean} [bool] * - true signals that this is an audio player * - false signals th
src/js/player.js:4557
↓ 5 callers
Method
isBasic
* Determines if a plugin is a basic plugin (i.e. not a sub-class of `Plugin`). * * @param {string|Function} plugin * If a string,
src/js/plugin.js:325
↓ 5 callers
Function
isPlain
(value)
src/js/utils/obj.js:104
↓ 5 callers
Function
isPromise
(value)
src/js/utils/promise.js:11
↓ 5 callers
Method
isSupported
()
test/unit/tech/tech-faker.js:171
↓ 5 callers
Function
langRe
(value, global)
docs/legacy-docs/js/index.js:7668
↓ 5 callers
Method
performMediaAction_
* Performs media control actions based on the given key input. * * Controls the playback and seeking functionalities of the media player. *
src/js/spatial-navigation.js:138
↓ 5 callers
Method
play
* Start playback * * @abstract * * @see {Html5#play}
src/js/tech/tech.js:503
↓ 5 callers
Method
requestVideoFrameCallback
* A fallback implementation of requestVideoFrameCallback using requestAnimationFrame * * @param {function} cb * @return {number} request id
src/js/tech/tech.js:866
↓ 5 callers
Method
resetProgressBar_
* Reset tech's progress so progress bar is reset in the UI
src/js/player.js:3825
↓ 5 callers
Method
resume
* Resumes the spatial navigation functionality if it has been paused. * This method resets the pause flag, re-enabling the navigation logic.
src/js/spatial-navigation.js:190
↓ 5 callers
Method
seekToLiveEdge
* Seek to the live edge if we are behind the live edge
src/js/live-tracker.js:359
↓ 5 callers
Function
stringifyPrimitive
(v)
docs/legacy-docs/js/index.js:3670
↓ 5 callers
Method
updateContent
* To be filled out in the child class, should update the displayed time * in accordance with the fact that the current time has changed. * *
src/js/control-bar/time-controls/time-display.js:142
↓ 5 callers
Method
updateStyleEl_
* Update styles of the `Player` element (height, width and aspect ratio). * * @private * @listens Tech#loadedmetadata
src/js/player.js:1091
↓ 5 callers
Method
videoWidth
* Get video width * * @return {number} * current video width
src/js/player.js:4819
↓ 4 callers
Function
TrackBaseline
(TrackClass, options)
test/unit/tracks/track-baseline.js:10
↓ 4 callers
Function
blitBuffer
(src, dst, offset, length)
docs/legacy-docs/js/index.js:1724
↓ 4 callers
Method
buildCSSClass
* Builds the default DOM `className`. * * @return {string} * The DOM `className` for this object.
src/js/menu/menu-button.js:206
↓ 4 callers
Function
buildSpan
(classname, insideSpan, leaveOpen, noPrefix)
docs/legacy-docs/js/index.js:7805
↓ 4 callers
Function
clamp
(number, min, max)
src/js/utils/num.js:20
↓ 4 callers
Method
clearTimersOnDispose_
* A function to setup `requestAnimationFrame`, `setTimeout`, * and `setInterval`, clearing on dispose. * * > Previously each timer added and
src/js/component.js:1796
↓ 4 callers
Function
computedStyle
(el, prop)
src/js/utils/dom.js:855
↓ 4 callers
Method
defaultMuted
()
test/unit/tech/tech-faker.js:127
↓ 4 callers
Function
deprecate
(message, fn)
src/js/utils/deprecate.js:22
↓ 4 callers
Method
disable
* Disable the `Button` element so that it cannot be activated or clicked. Use this with * {@link Button#enable}.
src/js/button.js:99
↓ 4 callers
Method
disable
()
src/js/control-bar/progress-control/seek-bar.js:398
↓ 4 callers
Function
emitReadable
(stream)
docs/legacy-docs/js/index.js:4353
↓ 4 callers
Method
ended
* Returns whether the player is in the "ended" state. * * @return {boolean} True if the player is in the ended state, false if not.
src/js/player.js:2720
↓ 4 callers
Function
getLanguage
(name)
docs/legacy-docs/js/index.js:8150
↓ 4 callers
Function
getMimetype
(src = '')
src/js/utils/mimetypes.js:45
↓ 4 callers
Function
getStyleText
(styleEl)
test/unit/player.test.js:631
↓ 4 callers
Method
handleMouseOut
* This gets called when a `VolumePanel` gains hover via a `mouseout` event. * Turns on listening for `mouseout` event. When they happen it * cal
src/js/control-bar/volume-panel.js:172
↓ 4 callers
Method
isTech
(component)
src/js/tech/tech.js:997
↓ 4 callers
Function
map
* A generic `Array#map` utility function. * @private * @param {Array} array The array to iterate over.
docs/legacy-docs/js/index.js:3093
↓ 4 callers
Function
objName
(obj)
src/js/mixins/evented.js:12
↓ 4 callers
Function
objectWriteUInt16
(buf, value, offset, littleEndian)
docs/legacy-docs/js/index.js:1184
↓ 4 callers
Function
objectWriteUInt32
(buf, value, offset, littleEndian)
docs/legacy-docs/js/index.js:1221
↓ 4 callers
Method
playsinline
* Set or unset the playsinline attribute. * Playsinline tells the browser that non-fullscreen playback is preferred. * * @param {boolean} [va
src/js/player.js:4011
↓ 4 callers
Function
pluginExists
(name)
src/js/plugin.js:46
↓ 4 callers
Method
remove
* Removes component from the array of focusable components. * * @param {Component} component - The component to be removed from the focusable co
src/js/spatial-navigation.js:443
↓ 4 callers
Method
removeSourceElement
()
test/unit/tech/tech-faker.js:115
↓ 4 callers
Method
runPlayTerminatedQueue_
* These functions will be run when if play is terminated. If play * runPlayCallbacks_ is run these function will not be run. This allows us * to
src/js/player.js:2452
↓ 4 callers
Method
setSrc
* Set the source of the `PosterImage` depending on the display method. (Re)creates * the inner picture and img elementss when needed. * * @pa
src/js/poster-image.js:125
↓ 4 callers
Function
setupAfterEach
(totalSourcesets)
test/unit/sourceset.test.js:93
↓ 4 callers
Function
setupEnv
(env, testName)
test/unit/sourceset.test.js:68
↓ 4 callers
Function
testHelperMakeTag
()
test/api/api.js:270
↓ 4 callers
Function
toLowerCase
(string)
src/js/utils/str.js:15
↓ 4 callers
Method
trigger
(event, hash)
src/js/component.js:224
↓ 4 callers
Function
triggerSetupEvent
(player, hash, before)
src/js/plugin.js:91
↓ 4 callers
Method
update
* This function updates the play progress bar and accessibility * attributes to whatever is passed in. * * @param {Event} [event] *
src/js/control-bar/progress-control/seek-bar.js:159
↓ 4 callers
Method
updateSourceCaches_
* Update the internal source caches so that we return the correct source from * `src()`, `currentSource()`, and `currentSources()`. * * > Not
src/js/player.js:1577
← previous
next →
201–300 of 1,624, ranked by callers