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
↓ 1 callers
Function
checkVolumeSupport
(self, player)
src/js/control-bar/volume-control/check-volume-support.js:16
↓ 1 callers
Function
chunkInvalid
(state, chunk)
docs/legacy-docs/js/index.js:4324
↓ 1 callers
Function
clean
(item)
test/unit/tracks/text-track-list-converter.test.js:10
↓ 1 callers
Method
cleanupAutoTextTracks
* Remove any TextTracks added via addRemoteTextTrack that are * flagged for automatic garbage collection
src/js/tech/tech.js:425
↓ 1 callers
Method
cleanupTrackListeners_
* Remove all track list event listeners without triggering a full dispose. * Used as the player 'dispose' handler and called by dispose() before su
src/js/control-bar/track-button.js:56
↓ 1 callers
Method
clearDisplay
* Clear all displayed {@link TextTrack}s.
src/js/tracks/text-track-display.js:260
↓ 1 callers
Function
compileLanguage
(language)
docs/legacy-docs/js/index.js:7662
↓ 1 callers
Function
compileMode
(mode, parent)
docs/legacy-docs/js/index.js:7675
↓ 1 callers
Method
conditionalBlur_
* conditionally blur the element and refocus the last focused element * * @private
src/js/modal-dialog.js:457
↓ 1 callers
Method
conditionalFocus_
* conditionally focus the modal dialog if focus was previously on the player. * * @private
src/js/modal-dialog.js:439
↓ 1 callers
Function
createBasicPlugin
(name, plugin)
src/js/plugin.js:112
↓ 1 callers
Method
createEl
* Create the `ClickableComponent`s DOM element. * * @param {string} [tag=div] * The element's node type. * * @param {Object} [pr
src/js/clickable-component.js:70
↓ 1 callers
Method
createEl
* Create the `Component`'s DOM element * * @return {Element} * The element that was created.
src/js/control-bar/progress-control/load-progress-bar.js:42
↓ 1 callers
Method
createEl
* Create the `MenuButtons`s DOM element. * * @return {Element} * The element that gets created.
src/js/menu/menu-button.js:157
↓ 1 callers
Method
createEl
* Create the `Menu`s DOM element. * * @return {Element} * the element that was created
src/js/menu/menu.js:116
↓ 1 callers
Method
createEl
* Create the `Html5` Tech's DOM element. * * @return {Element} * The element that gets created.
src/js/tech/html5.js:361
↓ 1 callers
Function
createFilenameArray
(classData)
docs/legacy-docs/api/assets/create-doc-files.js:35
↓ 1 callers
Function
createFiles
* create the HTML files for the classes * @param {array} filenameArray - array of the filenames
docs/legacy-docs/api/assets/create-doc-files.js:24
↓ 1 callers
Method
createItems
* Create the list of menu items. Specific to each subclass. * * @abstract
src/js/menu/menu-button.js:149
↓ 1 callers
Function
createLogger
(name, delimiter = ':', styles = '')
src/js/utils/create-logger.js:79
↓ 1 callers
Method
createMenu
* Create the menu and add all items to it. * * @return {Menu} * The constructed menu
src/js/menu/menu-button.js:106
↓ 1 callers
Method
createRemoteTextTrack
* Create an emulated TextTrack for use by addRemoteTextTrack * * This is intended to be overridden by classes that inherit from * Tech in ord
src/js/tech/tech.js:751
↓ 1 callers
Function
createTrackHelper
* A function used by {@link Tech} to create a new {@link TextTrack}. * * @private * * @param {Tech} self * An instance of the Tech class.
src/js/tech/tech.js:59
↓ 1 callers
Method
crossOrigin
* Get or set the `PosterImage`'s crossOrigin option. * * @param {string|null} [value] * The value to set the crossOrigin to. If an arg
src/js/poster-image.js:67
↓ 1 callers
Method
crossOrigin
* Get the value of `crossOrigin` from the tech. * * @abstract * * @see {Html5#crossOrigin}
src/js/tech/tech.js:450
↓ 1 callers
Method
currentSrc
* Returns the fully qualified URL of the current source value e.g. http://mysite.com/video.mp4 * Can be used in conjunction with `currentType` to a
src/js/player.js:3908
↓ 1 callers
Method
currentType
* Get the current source type e.g. video/mp4 * This can allow you rebuild the current source object so that you could load the same * source and
src/js/player.js:3920
↓ 1 callers
Function
debounce
(func, wait, immediate, context = window)
src/js/utils/fn.js:104
↓ 1 callers
Function
decodeChunk
(state, chunk, encoding)
docs/legacy-docs/js/index.js:5341
↓ 1 callers
Function
decodeCodePointsArray
(codePoints)
docs/legacy-docs/js/index.js:861
↓ 1 callers
Method
dimensions
* Set both the width and height of the `Component` element at the same time. * * @param {number|string} width * Width to set the `Co
src/js/component.js:1120
↓ 1 callers
Method
disableAudioOnlyUI_
()
src/js/player.js:4609
↓ 1 callers
Method
disablePictureInPicture
* A method to check for the value of the 'disablePictureInPicture' <video> property. * Defaults to true, as it should be considered disabled if the
src/js/tech/tech.js:849
↓ 1 callers
Method
disablePosterModeUI_
()
src/js/player.js:4674
↓ 1 callers
Method
disconnect
()
test/unit/resize-manager.test.js:49
↓ 1 callers
Method
dispose
* Destroys the video player and does any necessary cleanup. * * This is especially helpful if you are dynamically adding and removing videos
src/js/player.js:639
↓ 1 callers
Method
dispose
* Dispose of the `menu-button` and all child components.
src/js/menu/menu-button.js:240
↓ 1 callers
Method
dispose
* Turn off all event polyfills, clear the `Tech`s {@link AudioTrackList}, * {@link VideoTrackList}, and {@link TextTrackList}, and dispose of this
src/js/tech/tech.js:376
↓ 1 callers
Method
documentFullscreenChange_
* when the document fschange event triggers it calls this
src/js/player.js:2132
↓ 1 callers
Function
drainQueue
()
docs/legacy-docs/js/index.js:2938
↓ 1 callers
Function
each
(object, fn)
src/js/utils/obj.js:58
↓ 1 callers
Function
emptyEl
(el)
src/js/utils/dom.js:640
↓ 1 callers
Method
enable
* Enable this `ClickableComponent`
src/js/clickable-component.js:176
↓ 1 callers
Method
enable
* Enable all controls on the progress control and its children
src/js/control-bar/progress-control/progress-control.js:167
↓ 1 callers
Method
enable
* Enable controls for this slider if they are disabled
src/js/slider/slider.js:60
↓ 1 callers
Method
enableAudioOnlyUI_
()
src/js/player.js:4577
↓ 1 callers
Method
enableTouchActivity
* This function reports user activity whenever touch events happen. This can get * turned off by any sub-components that wants touch events to act
src/js/component.js:1503
↓ 1 callers
Function
endOfMode
(mode, lexeme)
docs/legacy-docs/js/index.js:7784
↓ 1 callers
Function
endWritable
(stream, state, cb)
docs/legacy-docs/js/index.js:5570
↓ 1 callers
Function
executeRight
(mws, method, value, terminated)
src/js/tech/middleware.js:233
↓ 1 callers
Method
exitFullscreenHelper_
()
src/js/player.js:3084
↓ 1 callers
Method
findBestCandidate_
* Finds the best candidate on the current center position, * the list of candidates, and the specified navigation direction. * * @param {Obje
src/js/spatial-navigation.js:503
↓ 1 callers
Method
findChaptersTrack
* Find the track object that is currently in use by this ChaptersButton * * @return {TextTrack|undefined} * The current track or unde
src/js/control-bar/text-track-controls/chapters-button.js:138
↓ 1 callers
Function
findMimetype
(player, src)
src/js/utils/mimetypes.js:65
↓ 1 callers
Function
fixLinks
* fix link paths to point to html instead of md
docs/legacy-docs/js/guides.js:63
↓ 1 callers
Function
fixMarkup
(value)
docs/legacy-docs/js/index.js:8031
↓ 1 callers
Function
formatArray
(ctx, value, recurseTimes, visibleKeys, keys)
docs/legacy-docs/js/index.js:7225
↓ 1 callers
Function
formatPrimitive
(ctx, value)
docs/legacy-docs/js/index.js:7201
↓ 1 callers
Function
fromArray
(that, array)
docs/legacy-docs/js/index.js:307
↓ 1 callers
Function
fromArrayBuffer
(that, array)
docs/legacy-docs/js/index.js:329
↓ 1 callers
Function
fromArrayLike
(that, array)
docs/legacy-docs/js/index.js:341
↓ 1 callers
Function
fromBuffer
(that, buffer)
docs/legacy-docs/js/index.js:300
↓ 1 callers
Function
fromJsonObject
(that, object)
docs/legacy-docs/js/index.js:352
↓ 1 callers
Function
fromList
(n, state)
docs/legacy-docs/js/index.js:4772
↓ 1 callers
Function
fromNumber
(that, length)
docs/legacy-docs/js/index.js:257
↓ 1 callers
Function
fromObject
(that, object)
docs/legacy-docs/js/index.js:277
↓ 1 callers
Function
fromString
(that, string, encoding)
docs/legacy-docs/js/index.js:267
↓ 1 callers
Method
fullWindowOnEscKey
* Check for call to either exit full window or * full screen on ESC key * * @param {string} event * Event to check for key press
src/js/player.js:3139
↓ 1 callers
Function
getAncestorData
(parent_class)
docs/legacy-docs/api/js/doc-script.js:599
↓ 1 callers
Function
getAncestorData
(parent_class)
docs/legacy-docs/api/js/api-docs.js:646
↓ 1 callers
Function
getClassData
* extracts class items from doc data * @param {array} docData JSON output from JSDoc
docs/legacy-docs/api/assets/create-doc-files.js:60
↓ 1 callers
Function
getInnerHTMLDescriptor
(tech)
src/js/tech/setup-sourceset.js:132
↓ 1 callers
Method
getIsDisabled
* Decide whether an element is actually disabled or not. * * @function isActuallyDisabled * @param element {Node} * @return {boolean}
src/js/component.js:1828
↓ 1 callers
Method
getIsExpresslyInert
* Decide whether the element is expressly inert or not. * * @see {@link https://html.spec.whatwg.org/multipage/interaction.html#expressly-iner
src/js/component.js:1840
↓ 1 callers
Method
getMenuCaption
* Get the caption for the ChaptersButton based on the track label. This will also * use the current tracks localized kind as a fallback if a label
src/js/control-bar/text-track-controls/chapters-button.js:158
↓ 1 callers
Function
getMockEscapeEvent
()
test/unit/close-button.test.js:6
↓ 1 callers
Function
getOrCreateFactory
* { * [playerId]: [[mwFactory, mwInstance], ...] * } * * @private
src/js/tech/middleware.js:262
↓ 1 callers
Function
getSelectedOptionValue
* Gets the value of the selected <option> element within a <select> element. * * @param {Element} el * the element to look in * * @param
src/js/tracks/text-track-settings.js:213
↓ 1 callers
Function
getSrcDescriptor
(tech)
src/js/tech/setup-sourceset.js:224
↓ 1 callers
Function
getSubArray
* get a subset of objects in array of objects * based on some property value * * @param {array} targetArray - array to search * @param {string} ob
docs/legacy-docs/api/assets/create-doc-files.js:10
↓ 1 callers
Method
getTagSettings
* Gets tag settings * * @param {Element} tag * The player tag * * @return {Object} * An object containing all of the
src/js/player.js:5261
↓ 1 callers
Method
handleBlur
* Called when a `MenuItem` loses focus. * * @param {Event} event * The `blur` event that caused this function to be called. * *
src/js/menu/menu.js:158
↓ 1 callers
Method
handleClick
* Event handler that is called when a `ClickableComponent` receives a * `click` or `tap` event. * * @param {Event} event * The `tap
src/js/clickable-component.js:225
↓ 1 callers
Method
handleClick
* Listener for click events on slider, used to prevent clicks * from bubbling up to parent elements like button menus. * * @param {Object}
src/js/slider/slider.js:360
↓ 1 callers
Method
handleDurationchange
* handle a durationchange event on the player * and start/stop tracking accordingly.
src/js/live-tracker.js:108
↓ 1 callers
Method
handleEnded
* Add the vjs-ended class to the element so it can change appearance * * @param {Event} [event] * The event that caused this function
src/js/control-bar/play-toggle.js:130
↓ 1 callers
Method
handleFirstTimeupdate
* handle the first timeupdate on the player if it wasn't already playing * when live tracker started tracking.
src/js/live-tracker.js:159
↓ 1 callers
Method
handleFullscreenChange
* Handles fullscreenchange on the player and change control text accordingly. * * @param {Event} [event] * The {@link Player#fullscree
src/js/control-bar/fullscreen-toggle.js:55
↓ 1 callers
Method
handleHotkeys
* Called when this Player receives a hotkey keydown event. * Supported player-wide hotkeys are: * * f - toggle fullscreen * m
src/js/player.js:3385
↓ 1 callers
Method
handleKeyDown
* Event handler that is called when a `ClickableComponent` receives a * `keydown` event. * * By default, if the key is Space or Enter, it wil
src/js/clickable-component.js:242
↓ 1 callers
Method
handleKeyDown
* When this Component receives a `keydown` event which it does not process, * it passes the event to the Player for handling. * * @param {Ke
src/js/component.js:1358
↓ 1 callers
Method
handleKeyDown
* Called when this Player has focus and a key gets pressed down, or when * any Component of this player receives a key press that it doesn't handle
src/js/player.js:3323
↓ 1 callers
Method
handleKeyDown
* Handle tab, escape, down arrow, and up arrow keys for `MenuButton`. See * {@link ClickableComponent#handleKeyDown} for instances where this is ca
src/js/menu/menu-button.js:300
↓ 1 callers
Method
handleKeyDown
* Handle a `keydown` event on this menu. This listener is added in the constructor. * * @param {KeyboardEvent} event * A `keydown` eve
src/js/menu/menu.js:214
↓ 1 callers
Method
handleKeyDown
* Handle a `keydown` event on the `Slider`. Watches for left, right, up, and down * arrow keys. This function will only be called when the slider h
src/js/slider/slider.js:311
↓ 1 callers
Method
handleLanguagechange
* Handles language change for the player in components. Should be overridden by sub-components. * * @abstract
src/js/component.js:437
↓ 1 callers
Method
handleLateInit_
* This will be triggered if the loadstart event has already fired, before videojs was * ready. Two known examples of when this can happen are: *
src/js/tech/html5.js:448
↓ 1 callers
Method
handleMenuKeyUp
* Handle a `keyup` event on a `MenuButton`. The listener for this is added in * the constructor. * * @param {Event} event * Key pre
src/js/menu/menu-button.js:332
↓ 1 callers
Method
handleMouseDown
* Handle `mousedown` events on the `BigPlayButton`. * * @param {MouseEvent} event * `mousedown` or `touchstart` event that triggered t
src/js/big-play-button.js:100
↓ 1 callers
Method
handleMouseDown
* Handle `mousedown` or `touchstart` events on the `ProgressControl`. * * @param {Event} event * `mousedown` or `touchstart` event tha
src/js/control-bar/progress-control/progress-control.js:202
← previous
next →
601–700 of 1,624, ranked by callers