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
↓ 4 callers
Method
updateTextNode_
* Updates the time display text node with a new time * * @param {number} [time=0] the time to update to * * @private
src/js/control-bar/time-controls/time-display.js:97
↓ 4 callers
Function
urlParse
(url, parseQueryString, slashesDenoteHost)
docs/legacy-docs/js/index.js:6218
↓ 4 callers
Function
utf8ToBytes
(string, units)
docs/legacy-docs/js/index.js:1611
↓ 4 callers
Function
validateTarget
(target, obj, fnName)
src/js/mixins/evented.js:97
↓ 4 callers
Method
vertical
* Get/set if slider is horizontal for vertical * * @param {boolean} [bool] * - true if slider is vertical, * - false is hori
src/js/slider/slider.js:376
↓ 4 callers
Method
videoHeight
* Get video height * * @return {number} * current video height
src/js/player.js:4829
↓ 3 callers
Function
_handleMultipleEvents
* Loops through an array of event types and calls the requested method for each type. * * @param {Function} fn * The event method we want to
src/js/utils/events.js:73
↓ 3 callers
Function
_interopRequireDefault
(obj)
docs/legacy-docs/js/index.js:31
↓ 3 callers
Function
addHeaderContent
* add the class header content
docs/legacy-docs/api/js/doc-script.js:184
↓ 3 callers
Function
addIndex
* add the side nav
docs/legacy-docs/api/js/doc-script.js:299
↓ 3 callers
Function
bind_
(context, fn, uid)
src/js/utils/fn.js:30
↓ 3 callers
Method
calculateDistance
* Calculate distance for slider * * @param {Event} event * The event that caused this function to run. * * @return {number} *
src/js/slider/slider.js:292
↓ 3 callers
Method
checkMuted
* If the player is muted unmute it.
src/js/control-bar/volume-control/volume-bar.js:107
↓ 3 callers
Method
clearTracks
* Clear out a single `TrackList` or an array of `TrackLists` given their names. * * > Note: Techs without source handlers should call this betwe
src/js/tech/tech.js:403
↓ 3 callers
Method
controlText
* Get or set the localize text to use for the controls on the `ClickableComponent`. * * @param {string} [text] * Control text for elem
src/js/clickable-component.js:147
↓ 3 callers
Method
createEl
* Create the `TextTrackFieldset`'s DOM element * * @return {Element} * The DOM element that gets created.
src/js/tracks/text-track-fieldset.js:120
↓ 3 callers
Function
createTimeRangesObj
* Create a time range object given ranges of time. * * @private * @param {Array} [ranges] * An array of time ranges. * * @return {Ti
src/js/utils/time.js:99
↓ 3 callers
Method
crossOrigin
* Get or set the `Player`'s crossOrigin option. For the HTML5 player, this * sets the `crossOrigin` property on the `<video>` tag to control the CO
src/js/player.js:893
↓ 3 callers
Method
defaultPlaybackRate
(value)
test/unit/tech/tech-faker.js:61
↓ 3 callers
Method
disableInterval_
(e)
src/js/control-bar/progress-control/seek-bar.js:120
↓ 3 callers
Function
disableOthers
(list, track)
src/js/tracks/audio-track-list.js:20
↓ 3 callers
Function
disableOthers
(list, track)
src/js/tracks/video-track-list.js:19
↓ 3 callers
Method
disablePictureInPicture
* Get or set disable Picture-in-Picture mode. * * @param {boolean} [value] * - true will disable Picture-in-Picture mode
src/js/player.js:3183
↓ 3 callers
Method
dispose
()
src/js/modal-dialog.js:109
↓ 3 callers
Function
doWrite
(stream, state, writev, len, chunk, encoding, cb)
docs/legacy-docs/js/index.js:5374
↓ 3 callers
Method
emitTapEvents
* Emit a 'tap' events when touch event support gets detected. This gets used to * support toggling the controls through a tap on the video. They ge
src/js/component.js:1397
↓ 3 callers
Function
endReadable
(stream)
docs/legacy-docs/js/index.js:4836
↓ 3 callers
Method
fillWith
* Fill the modal's content element with arbitrary content. * The content element will be emptied before this change takes place. * * @fires M
src/js/modal-dialog.js:337
↓ 3 callers
Method
findSuitableDOMChild
* Finds a suitable child element within the provided component's DOM element. * * @param {Object} component - The component containing the DOM e
src/js/spatial-navigation.js:360
↓ 3 callers
Function
flow
(stream)
docs/legacy-docs/js/index.js:4690
↓ 3 callers
Method
focus
* Set the focus to the actual button, not to this element
src/js/menu/menu-button.js:280
↓ 3 callers
Method
focusableEls_
* get all focusable elements * * @private
src/js/modal-dialog.js:520
↓ 3 callers
Method
foo
()
test/api/api.js:285
↓ 3 callers
Function
formatError
(value)
docs/legacy-docs/js/index.js:7220
↓ 3 callers
Function
formatProperty
(ctx, value, recurseTimes, visibleKeys, key, array)
docs/legacy-docs/js/index.js:7245
↓ 3 callers
Function
formatValue
(ctx, value, recurseTimes)
docs/legacy-docs/js/index.js:7088
↓ 3 callers
Function
getExpectedBreakpoints
(o)
test/unit/player-breakpoints.test.js:5
↓ 3 callers
Function
getPlugin
(name)
src/js/plugin.js:58
↓ 3 callers
Method
handleAction
* Toggles the playback state of the player * This gets called when enter or space is used on the seekbar * * @param {KeyboardEvent} event
src/js/control-bar/progress-control/seek-bar.js:500
↓ 3 callers
Method
handleKeyPress
* Handles `keyup` event on the document or `keydown` event on the `VolumePanel`, * looking for ESC, which hides the `VolumeControl`. * * @par
src/js/control-bar/volume-panel.js:186
↓ 3 callers
Method
handleMouseMove
(e)
src/js/player.js:4389
↓ 3 callers
Method
handleTechDurationChange_
* Fired when the duration of the media resource is first known or changed * * @listens Tech#durationchange * @private
src/js/player.js:1966
↓ 3 callers
Method
handleTechRateChange_
* Retrigger the `ratechange` event that was triggered by the {@link Tech}. * * If there were any events queued while the playback rate was zero,
src/js/player.js:1778
↓ 3 callers
Function
hasOwnProperty
(obj, prop)
docs/legacy-docs/js/index.js:3585
↓ 3 callers
Function
highlight
(name, value, ignore_illegals, continuation)
docs/legacy-docs/js/index.js:7774
↓ 3 callers
Method
isDisposed
* Determine whether or not this component has been disposed. * * @return {boolean} * If the component has been disposed, will be `tru
src/js/component.js:299
↓ 3 callers
Function
isError
(e)
docs/legacy-docs/js/index.js:5672
↓ 3 callers
Function
isRegExp
(re)
docs/legacy-docs/js/index.js:5657
↓ 3 callers
Function
isValidEventType
(type)
src/js/mixins/evented.js:75
↓ 3 callers
Method
load
* Begin loading the src data.
src/js/player.js:3757
↓ 3 callers
Function
middlewareIterator
(method)
src/js/tech/middleware.js:218
↓ 3 callers
Function
mwFactory
()
test/unit/tech/middleware.test.js:17
↓ 3 callers
Method
nextSeekedFromUser
* The next seeked event is from the user. Meaning that any seek * > 2s behind live will be considered behind live for real and * liveTolerance w
src/js/live-tracker.js:212
↓ 3 callers
Function
normalizeListenArgs
(self, args, fnName)
src/js/mixins/evented.js:165
↓ 3 callers
Method
onKeyDown_
* Responds to keydown events for spatial navigation and media control. * * Determines if spatial navigation or media control is active and handl
src/js/spatial-navigation.js:101
↓ 3 callers
Method
overrideNativeAudioTracks
* Attempt to force override of native audio tracks. * * @param {boolean} override - If set to true native audio will be overridden, * otherwi
src/js/tech/tech.js:926
↓ 3 callers
Method
overrideNativeVideoTracks
* Attempt to force override of native video tracks. * * @param {boolean} override - If set to true native video will be overridden, * otherwi
src/js/tech/tech.js:936
↓ 3 callers
Function
pad
(n)
docs/legacy-docs/js/index.js:7413
↓ 3 callers
Function
percentify
(time, end)
src/js/control-bar/progress-control/load-progress-bar.js:12
↓ 3 callers
Method
playbackRates
* Get possible playback rates * * @return {Array} * All possible playback rates
src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js:112
↓ 3 callers
Method
played
* Get a TimeRange object representing the current ranges of time that the user * has played. * * @return {TimeRange} * A time rang
src/js/player.js:2510
↓ 3 callers
Function
processBuffer
()
docs/legacy-docs/js/index.js:7860
↓ 3 callers
Method
refocusComponent
* Focus the last focused component saved before blur on player.
src/js/spatial-navigation.js:547
↓ 3 callers
Method
removeTrackElement_
* Remove a {@link HtmlTrackElement} from the `HtmlTrackElementList` * * @param {HtmlTrackElement} trackElement * The track element to
src/js/tracks/html-track-element-list.js:95
↓ 3 callers
Method
requestAnimationFrame
* Queues up a callback to be passed to requestAnimationFrame (rAF), but * with a few extra bonuses: * * - Supports browsers that do not suppo
src/js/component.js:1694
↓ 3 callers
Method
seekable
* Get the TimeRanges of the media that are currently available * for seeking to. * * @see [Seekable Spec]{@link https://html.spec.whatwg.org/
src/js/player.js:2696
↓ 3 callers
Method
setCurrentTime
(value)
test/unit/tech/tech-faker.js:82
↓ 3 callers
Method
setPlaybackRate
(value)
test/unit/tech/tech-faker.js:68
↓ 3 callers
Method
setPoster
(val)
test/unit/tech/tech-faker.js:38
↓ 3 callers
Function
sourcesetLoad
(tech)
src/js/tech/setup-sourceset.js:21
↓ 3 callers
Method
src
* Get or set the video source. * * @param {Tech~SourceObject|Tech~SourceObject[]|string} [source] * A SourceObject, an array of Source
src/js/player.js:3663
↓ 3 callers
Method
stop
* Stops the spatial navigation by removing the keydown event listener from the video container. * Also sets the `isListening_` flag to false.
src/js/spatial-navigation.js:89
↓ 3 callers
Method
stopTracking
* stop tracking live playback
src/js/live-tracker.js:219
↓ 3 callers
Method
stopTrackingCurrentTime
* Stop the interval function created in {@link Tech#trackCurrentTime} so that the * `timeupdate` event is no longer triggered. * * @listens {
src/js/tech/tech.js:362
↓ 3 callers
Method
stopTrackingProgress
* Turn off the polyfill for `progress` events that was created in * {@link Tech#manualProgressOn} * Stop manually tracking progress events by cl
src/js/tech/tech.js:305
↓ 3 callers
Function
tag
(node)
docs/legacy-docs/js/index.js:7509
↓ 3 callers
Function
testRe
(re, lexeme)
docs/legacy-docs/js/index.js:7513
↓ 3 callers
Function
throttle
(fn, wait)
src/js/utils/fn.js:63
↓ 3 callers
Method
trackLive_
* all the functionality for tracking when seek end changes * and for tracking how far past seek end we should be
src/js/live-tracker.js:65
↓ 3 callers
Method
unloadTech_
* Unload and dispose of the current playback {@link Tech}. * * @private
src/js/player.js:1325
↓ 3 callers
Function
unpipe
()
docs/legacy-docs/js/index.js:4528
↓ 3 callers
Method
updateCurrentBreakpoint_
* Change breakpoint classes when the player resizes. * * @private
src/js/player.js:4945
↓ 3 callers
Method
updateForTrack
* Add an {@link TextTrack} to to the {@link Tech}s {@link TextTrackList}. * * @param {TextTrack|TextTrack[]} tracks * Text track objec
src/js/tracks/text-track-display.js:488
↓ 2 callers
Function
_cleanUpEvents
* Clean up the listener cache and dispatchers * * @param {Element|Object} elem * Element to clean up * * @param {string} type * Ty
src/js/utils/events.js:25
↓ 2 callers
Function
adapt
* Bias adaptation function as per section 3.4 of RFC 3492. * http://tools.ietf.org/html/rfc3492#section-3.4 * @priva
docs/legacy-docs/js/index.js:3233
↓ 2 callers
Function
addEventListener
()
test/unit/tracks/track-list.test.js:8
↓ 2 callers
Function
addMembersContent
* add the member content
docs/legacy-docs/api/js/doc-script.js:424
↓ 2 callers
Method
addRemoteTextTrack
* Creates a remote text track object and returns an html track element. * * > Note: This can be an emulated {@link HTMLTrackElement} or a native
src/js/tech/tech.js:776
↓ 2 callers
Method
addTechControlsListeners_
* Set up click and touch listeners for the playback element * * - On desktops: a click on the video itself will toggle playback * - On mobile
src/js/player.js:1409
↓ 2 callers
Function
afterWrite
(stream, state, finished, cb)
docs/legacy-docs/js/index.js:5438
↓ 2 callers
Function
appendContent
(el, content)
src/js/utils/dom.js:719
↓ 2 callers
Function
appendWrapper
(appendFn)
src/js/tech/setup-sourceset.js:167
↓ 2 callers
Function
arrayIndexOf
(arr, val, byteOffset)
docs/legacy-docs/js/index.js:626
↓ 2 callers
Function
asciiWrite
(buf, string, offset, length)
docs/legacy-docs/js/index.js:688
↓ 2 callers
Method
aspectRatio
* A getter/setter for the `Player`'s aspect ratio. * * @param {string} [ratio] * The value to set the `Player`'s aspect ratio to. *
src/js/player.js:1067
↓ 2 callers
Function
autoSetupTimeout
* Wait until the page is loaded before running autoSetup. This will be called in * autoSetup if `hasLoaded` returns false. * * @param {number} wait
src/js/setup.js:72
↓ 2 callers
Function
base64ToBytes
(str)
docs/legacy-docs/js/index.js:1720
↓ 2 callers
Method
bindFunctionsToSelectsAndButtons
()
src/js/tracks/text-track-settings.js:334
↓ 2 callers
Method
buffered
* Get a TimeRange object with an array of the times of the video * that have been downloaded. If you just want the percent of the * video that's
src/js/player.js:2677
↓ 2 callers
Method
buffered
* Get and create a `TimeRange` object for buffering. * * @return {TimeRange} * The time range object that was created.
src/js/tech/tech.js:283
← previous
next →
301–400 of 1,624, ranked by callers