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
↓ 2 callers
Function
bufferedPercent
(buffered, duration)
src/js/utils/buffer.js:21
↓ 2 callers
Method
canPlaySource
(srcObj)
test/unit/tech/tech-faker.js:177
↓ 2 callers
Function
canPlayType
()
test/unit/tech/tech.test.js:19
↓ 2 callers
Function
checkIEEE754
(buf, value, offset, ext, max, min)
docs/legacy-docs/js/index.js:1374
↓ 2 callers
Function
classHasMembers
(member)
docs/legacy-docs/api/js/doc-script.js:319
↓ 2 callers
Function
classHasMembers
(member)
docs/legacy-docs/api/js/api-docs.js:353
↓ 2 callers
Function
cleanup
()
docs/legacy-docs/js/index.js:4461
↓ 2 callers
Function
clearBuffer
(stream, state)
docs/legacy-docs/js/index.js:5458
↓ 2 callers
Function
clearObj
(obj)
test/unit/videojs-hooks.test.js:7
↓ 2 callers
Function
containsRulesFromStyle
(el)
test/unit/utils/dom.test.js:808
↓ 2 callers
Method
createControlTextEl
* Create a control text element on this `ClickableComponent` * * @param {Element} [el] * Parent element for the control text. *
src/js/clickable-component.js:118
↓ 2 callers
Method
createEl
* Create the `ModalDialog`'s DOM element * * @return {Element} * The DOM element that gets created.
src/js/modal-dialog.js:96
↓ 2 callers
Method
createEl
* Create the `Component`s DOM element. * * @param {string} [tagName] * Element's DOM node type. e.g. 'div' * * @param {Object} [
src/js/component.js:358
↓ 2 callers
Method
createEl
* Create the `PosterImage`s DOM element. * * @return {Element} * The element that gets created.
src/js/poster-image.js:50
↓ 2 callers
Method
createEl
* Create the `Player`'s DOM element. * * @return {Element} * The DOM element that gets created.
src/js/player.js:710
↓ 2 callers
Function
createMemberItem
(classData, member)
docs/legacy-docs/api/js/doc-script.js:462
↓ 2 callers
Function
createMemberItem
(classData, member)
docs/legacy-docs/api/js/api-docs.js:496
↓ 2 callers
Method
createModal
* Creates a simple modal dialog (an instance of the {@link ModalDialog} * component) that immediately overlays the player with arbitrary * conte
src/js/player.js:4925
↓ 2 callers
Function
createNativeMediaError
(code, message)
test/unit/media-error.test.js:14
↓ 2 callers
Function
createPluginFactory
(name, PluginSubClass)
src/js/plugin.js:154
↓ 2 callers
Function
createQuerier
* Creates functions to query the DOM using a given method. * * @private * @param {string} method * The method to create the query with.
src/js/utils/dom.js:103
↓ 2 callers
Method
currentDimensions
* Get an object that contains computed width and height values of the * component's element. * * Uses `window.getComputedStyle`. * * @r
src/js/component.js:1263
↓ 2 callers
Method
defaultPlaybackRate
* Gets or sets the current default playback rate. A default playback rate of * 1.0 represents normal speed and 0.5 would indicate half-speed playba
src/js/player.js:4535
↓ 2 callers
Function
defineLazyProperty
(obj, key, getValue, setter = true)
src/js/utils/obj.js:180
↓ 2 callers
Method
description
* Returns the description string for this modal. Primarily used for * accessibility. * * @return {string} * The localized or raw d
src/js/modal-dialog.js:144
↓ 2 callers
Function
digitToBasic
* Converts a digit/integer into a basic code point. * @see `basicToDigit()` * @private * @param {Nu
docs/legacy-docs/js/index.js:3222
↓ 2 callers
Method
dimension
* Get or set width or height of the `Component` element. This is the shared code * for the {@link Component#width} and {@link Component#height}.
src/js/component.js:1154
↓ 2 callers
Method
doReset_
()
src/js/player.js:3784
↓ 2 callers
Function
emitReadable_
(stream)
docs/legacy-docs/js/index.js:4368
↓ 2 callers
Method
empty
* Empties the content element. This happens anytime the modal is filled. * * @fires ModalDialog#beforemodalempty * @fires ModalDialog#modalem
src/js/modal-dialog.js:393
↓ 2 callers
Method
emulateTextTracks
* Emulate texttracks *
src/js/tech/tech.js:661
↓ 2 callers
Method
enable
()
src/js/control-bar/progress-control/seek-bar.js:387
↓ 2 callers
Method
enableInterval_
()
src/js/control-bar/progress-control/seek-bar.js:112
↓ 2 callers
Method
enablePosterModeUI_
()
src/js/player.js:4665
↓ 2 callers
Method
enabled
* Are controls are currently enabled for this progress control. * * @return {boolean} * true if controls are enabled, false otherwise
src/js/control-bar/progress-control/progress-control.js:129
↓ 2 callers
Method
enabled
* Are controls are currently enabled for this slider or not. * * @return {boolean} * true if controls are enabled, false otherwise
src/js/slider/slider.js:53
↓ 2 callers
Method
enterFullWindow
* When fullscreen isn't supported we can stretch the * video container to as wide as the browser will let us. * * @fires Player#enterFullWind
src/js/player.js:3109
↓ 2 callers
Method
exitFullWindow
* Exit full window * * @fires Player#exitFullWindow
src/js/player.js:3156
↓ 2 callers
Method
fakeSourceset
()
test/unit/tech/tech-faker.js:103
↓ 2 callers
Method
fill
* Fill the modal's content element with the modal's "content" option. * The content element will be emptied before this change takes place.
src/js/modal-dialog.js:323
↓ 2 callers
Function
findPosition
(el)
src/js/utils/dom.js:504
↓ 2 callers
Function
finishMaybe
(stream, state)
docs/legacy-docs/js/index.js:5557
↓ 2 callers
Function
firstSourceWatch
(tech)
src/js/tech/setup-sourceset.js:157
↓ 2 callers
Function
fixEvent
(event)
src/js/utils/events.js:89
↓ 2 callers
Function
fixSource
* Checks src mimetype, adding it when possible * * @param {Tech~SourceObject} src * The src object to check * @return {Tech~SourceObject}
src/js/utils/filter-source.js:58
↓ 2 callers
Function
flatten
(className, str)
docs/legacy-docs/js/index.js:7684
↓ 2 callers
Function
forEach
(xs, f)
docs/legacy-docs/js/index.js:3842
↓ 2 callers
Function
fromTypedArray
(that, array)
docs/legacy-docs/js/index.js:317
↓ 2 callers
Function
getCSSPositionValue
* Converts the CSS top/right/bottom/left property numeric value to string in pixels. * * @param {number} position * The CSS top/right/bottom
src/js/tracks/text-track-display.js:94
↓ 2 callers
Method
getChildById
* Returns the child `Component` with the given `id`. * * @param {string} id * The id of the child `Component` to get. * * @retur
src/js/component.js:490
↓ 2 callers
Method
getCurrentTime_
* Get the value of current time but allows for smooth scrubbing, * when player can't keep up. * * @return {number} * The current t
src/js/control-bar/progress-control/seek-bar.js:232
↓ 2 callers
Function
getDescriptor
(priority, prop)
src/js/tech/setup-sourceset.js:115
↓ 2 callers
Method
getEventHash
* Each event triggered by plugins includes a hash of additional data with * conventional properties. * * This returns that object or mutates
src/js/plugin.js:244
↓ 2 callers
Function
getItemLabels
()
test/unit/control-bar/playback-rate-menu/playback-rate-menu-button.test.js:56
↓ 2 callers
Method
getPluginVersion
* Gets a plugin's version, if available * * @param {string} name * The name of a plugin. * * @return {string} *
src/js/plugin.js:431
↓ 2 callers
Method
getSkipBackwardTime
()
src/js/control-bar/skip-buttons/skip-backward.js:28
↓ 2 callers
Method
getSkipForwardTime
()
src/js/control-bar/skip-buttons/skip-forward.js:28
↓ 2 callers
Method
handleKeyDown
* Keydown handler. Attached when modal is focused. * * @listens keydown
src/js/modal-dialog.js:469
↓ 2 callers
Method
handleMouseDown
()
src/js/player.js:4399
↓ 2 callers
Method
handleMouseDown
* Handle `mousedown` or `touchstart` events on the `VolumeControl`. * * @param {Event} event * `mousedown` or `touchstart` event that
src/js/control-bar/volume-control/volume-control.js:94
↓ 2 callers
Method
handleMouseLeave
* Handle `mouseleave` for `MenuButton`. * * @param {Event} event * The `mouseleave` event that caused this function to be called. *
src/js/menu/menu-button.js:272
↓ 2 callers
Method
handleMouseMove
* Handle the `mousemove`, `touchmove`, and `mousedown` events on this `Slider`. * The `mousemove` and `touchmove` events will only only trigger thi
src/js/slider/slider.js:199
↓ 2 callers
Method
handleMouseOver
* This gets called when a `VolumePanel` gains hover via a `mouseover` event. * Turns on listening for `mouseover` event. When they happen it * c
src/js/control-bar/volume-panel.js:157
↓ 2 callers
Method
handleMouseUp
* Handle `mouseup` or `touchend` events on the `Slider`. * * @param {MouseEvent} event * `mouseup` or `touchend` event that triggered
src/js/slider/slider.js:211
↓ 2 callers
Method
handlePause
* Add the vjs-paused class to the element so it can change appearance. * * @param {Event} [event] * The event that caused this functio
src/js/control-bar/play-toggle.js:114
↓ 2 callers
Method
handlePendingSeek_
* Handles pending seek time when `disableSeekWhileScrubbingOnSTV` is enabled. * * @param {number} stepAmount - The number of seconds to step (po
src/js/control-bar/progress-control/seek-bar.js:455
↓ 2 callers
Method
handlePictureInPictureEnabledChange
* Enables or disables button based on availability of a Picture-In-Picture mode. * * Enabled if * - `player.options().enableDocumentPictureIn
src/js/control-bar/picture-in-picture-toggle.js:85
↓ 2 callers
Method
handlePlay
* Add the vjs-playing class to the element so it can change appearance. * * @param {Event} [event] * The event that caused this functi
src/js/control-bar/play-toggle.js:98
↓ 2 callers
Method
handleSrc_
* Executes source setting and getting logic * * @param {Tech~SourceObject|Tech~SourceObject[]|string} [source] * A SourceObject, an ar
src/js/player.js:3554
↓ 2 callers
Method
handleSubmenuKeyDown
* Handle a `keydown` event on a sub-menu. The listener for this is added in * the constructor. * * @param {Event} event * Key press
src/js/menu/menu-button.js:360
↓ 2 callers
Method
handleTechPosterChange_
* Some techs (e.g. YouTube) can provide a poster source in an * asynchronous way. We want the poster component to use this * poster source so th
src/js/player.js:4096
↓ 2 callers
Function
highlightAuto
(text, languageSubset)
docs/legacy-docs/js/index.js:7997
↓ 2 callers
Function
howMuchToRead
(n, state)
docs/legacy-docs/js/index.js:4171
↓ 2 callers
Function
indexOf
(xs, x)
docs/legacy-docs/js/index.js:2649
↓ 2 callers
Function
inherit
(parent, obj)
docs/legacy-docs/js/index.js:7542
↓ 2 callers
Method
initChildren
* Add and initialize default child `Component`s based upon options.
src/js/component.js:734
↓ 2 callers
Function
inspect
(obj, opts)
docs/legacy-docs/js/index.js:6995
↓ 2 callers
Function
isBoolean
(arg)
docs/legacy-docs/js/index.js:5622
↓ 2 callers
Function
isDate
(d)
docs/legacy-docs/js/index.js:5667
↓ 2 callers
Function
isDefined
* tests for all the ways a variable might be undefined or not have a value * @param {*} x the variable to test * @return {Boolean} true if v
docs/legacy-docs/js/guides.js:20
↓ 2 callers
Function
isEl
(value)
src/js/utils/dom.js:71
↓ 2 callers
Function
isNonBlankString
* Detect if a value is a string with any non-whitespace characters. * * @private * @param {string} str * The string to check * * @retur
src/js/utils/dom.js:24
↓ 2 callers
Function
isNotHighlighted
(language)
docs/legacy-docs/js/index.js:7518
↓ 2 callers
Function
isNumber
(arg)
docs/legacy-docs/js/index.js:2272
↓ 2 callers
Function
kMaxLength
()
docs/legacy-docs/js/index.js:215
↓ 2 callers
Function
keys
(object)
src/js/utils/obj.js:45
↓ 2 callers
Method
label
* Returns the label string for this modal. Primarily used for accessibility. * * @return {string} * the localized or raw label of thi
src/js/modal-dialog.js:133
↓ 2 callers
Method
listenForUserActivity_
* Listen for user activity based on timeout value * * @private
src/js/player.js:4383
↓ 2 callers
Function
loadTrack
(src, track)
src/js/tracks/text-track.js:76
↓ 2 callers
Method
manualAutoplay_
* Handle autoplay string values, rather than the typical boolean * values that should be handled by the tech. Note that this is not * part of an
src/js/player.js:1508
↓ 2 callers
Function
mapDomain
* A simple `Array#map`-like wrapper to work with domain name strings or email * addresses. * @private
docs/legacy-docs/js/index.js:3112
↓ 2 callers
Function
markPluginAsActive
(player, name)
src/js/plugin.js:72
↓ 2 callers
Function
needFinish
(stream, state)
docs/legacy-docs/js/index.js:5543
↓ 2 callers
Function
newGUID
()
src/js/utils/guid.js:27
↓ 2 callers
Function
nodeStream
(node)
docs/legacy-docs/js/index.js:7554
↓ 2 callers
Function
normalizeId
(id)
src/js/video.js:60
↓ 2 callers
Function
off
(elem, type, fn)
src/js/utils/events.js:352
↓ 2 callers
Function
on
(elem, type, fn)
src/js/utils/events.js:266
↓ 2 callers
Method
overrideNative_
* Attempt to force override of tracks for the given type * * @param {string} type - Track type to override, possible values include 'Audio',
src/js/tech/html5.js:218
↓ 2 callers
Function
parseCues
(srcContent, track)
src/js/tracks/text-track.js:28
← previous
next →
401–500 of 1,624, ranked by callers