MCPcopy Create free account

hub / github.com/videojs/video.js / functions

Functions1,624 in github.com/videojs/video.js

↓ 6 callersFunctionassertion
(actual, expected, actualArr, expectedArr, type)
test/unit/tech/middleware.test.js:74
↓ 6 callersMethodbreakpoints
* 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 callersMethodcanPlayType
(type)
test/unit/tech/tech-faker.js:174
↓ 6 callersMethodcancelNamedAnimationFrame
* 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 callersFunctionchecked
(length)
docs/legacy-docs/js/index.js:388
↓ 6 callersFunctioncleanup
(item)
test/unit/tracks/text-track-list-converter.test.js:16
↓ 6 callersFunctionconstructColor
(color, opacity)
src/js/tracks/text-track-display.js:39
↓ 6 callersFunctioncopyObj
* 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 callersFunctioncreateEl
(tagName = 'div', properties = {}, attributes = {}, content)
src/js/utils/dom.js:136
↓ 6 callersMethodcurrentDimension
* Get the computed width or the height of the component's element. * * Uses `window.getComputedStyle`. * * @param {string} widthOrHeight
src/js/component.js:1217
↓ 6 callersMethodduration
* 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 callersMethodexitPictureInPicture
* Exit Picture-in-Picture mode. * * @see [Spec]{@link https://wicg.github.io/picture-in-picture} * * @fires Player#leavepictureinpicture
src/js/player.js:3294
↓ 6 callersFunctionfindClassObjects
* 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 callersMethodgetCache
* Get object for cached values. * * @return {Object} * get the current object cache
src/js/player.js:2260
↓ 6 callersMethodgetIsFocusable
* 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 callersMethodgetValues
* 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 callersMethodgetVideoPlaybackQuality
* 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 callersMethodhandleClick
()
test/unit/clickable-component.test.js:48
↓ 6 callersMethodhasPlugin
(name)
src/js/player.js:5388
↓ 6 callersFunctionisItemInArray
* 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 callersFunctionisString
(arg)
docs/legacy-docs/js/index.js:5642
↓ 6 callersFunctionmakeList
(classArr, parentArr, member, list)
docs/legacy-docs/api/js/doc-script.js:335
↓ 6 callersFunctionmakeList
(classArr, parentArr, member, list)
docs/legacy-docs/api/js/api-docs.js:369
↓ 6 callersMethodmove
* 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 callersFunctionobjectToString
(o)
docs/legacy-docs/js/index.js:5698
↓ 6 callersMethodpastSeekEnd
* 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 callersMethodposter
* Get or set the poster image source url * * @fires Player#posterchange * * @param {string} [src] * Poster image source URL *
src/js/player.js:4051
↓ 6 callersFunctionpush
(v)
docs/legacy-docs/js/index.js:1792
↓ 6 callersMethodqueueTrigger
(event)
src/js/event-target.js:127
↓ 6 callersMethodremoveCue
* 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 callersMethodstepBack
* Move to previous (higher) menu item for keyboard users.
src/js/menu/menu.js:245
↓ 6 callersFunctionthrottled
(...args)
src/js/utils/fn.js:66
↓ 6 callersMethodtoJSON
* returns a JavaScript object representing the current track * information. **DOES not return it as JSON** * * @return {Object} *
src/js/player.js:4891
↓ 6 callersMethodunpressButton
* Take the current `MenuButton` out of a pressed state.
src/js/menu/menu-button.js:404
↓ 6 callersMethodusingPlugin
(name)
src/js/player.js:5407
↓ 5 callersMethodaddItem
* 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 callersMethodaddTrackElement_
* 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 callersMethodbehindLiveEdge
* 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 callersMethodcurrentSrc
()
test/unit/tech/tech-faker.js:118
↓ 5 callersMethoddimension
* A getter/setter for the `Player`'s width & height. * * @param {string} dimension * This string can be: * - 'width' *
src/js/player.js:956
↓ 5 callersMethodenable
* Enable the `Button` element so that it can be activated or clicked. Use this with * {@link Button#disable}.
src/js/button.js:90
↓ 5 callersFunctiongetAbsoluteURL
(url)
src/js/utils/url.js:32
↓ 5 callersMethodgetCueById
* 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 callersMethodgetCurrentComponent
* 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 callersMethodgetMedia
* 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 callersFunctiongetMenuItemByLanguage
(items, language)
test/unit/tracks/text-track-display.test.js:21
↓ 5 callersFunctiongetMockEscapeEvent
()
test/unit/modal-dialog.test.js:8
↓ 5 callersMethodgetProgress
* 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 callersMethodisAudio
* 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 callersMethodisBasic
* 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 callersFunctionisPlain
(value)
src/js/utils/obj.js:104
↓ 5 callersFunctionisPromise
(value)
src/js/utils/promise.js:11
↓ 5 callersMethodisSupported
()
test/unit/tech/tech-faker.js:171
↓ 5 callersFunctionlangRe
(value, global)
docs/legacy-docs/js/index.js:7668
↓ 5 callersMethodperformMediaAction_
* 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 callersMethodplay
* Start playback * * @abstract * * @see {Html5#play}
src/js/tech/tech.js:503
↓ 5 callersMethodrequestVideoFrameCallback
* A fallback implementation of requestVideoFrameCallback using requestAnimationFrame * * @param {function} cb * @return {number} request id
src/js/tech/tech.js:866
↓ 5 callersMethodresetProgressBar_
* Reset tech's progress so progress bar is reset in the UI
src/js/player.js:3825
↓ 5 callersMethodresume
* 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 callersMethodseekToLiveEdge
* Seek to the live edge if we are behind the live edge
src/js/live-tracker.js:359
↓ 5 callersFunctionstringifyPrimitive
(v)
docs/legacy-docs/js/index.js:3670
↓ 5 callersMethodupdateContent
* 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 callersMethodupdateStyleEl_
* Update styles of the `Player` element (height, width and aspect ratio). * * @private * @listens Tech#loadedmetadata
src/js/player.js:1091
↓ 5 callersMethodvideoWidth
* Get video width * * @return {number} * current video width
src/js/player.js:4819
↓ 4 callersFunctionTrackBaseline
(TrackClass, options)
test/unit/tracks/track-baseline.js:10
↓ 4 callersFunctionblitBuffer
(src, dst, offset, length)
docs/legacy-docs/js/index.js:1724
↓ 4 callersMethodbuildCSSClass
* Builds the default DOM `className`. * * @return {string} * The DOM `className` for this object.
src/js/menu/menu-button.js:206
↓ 4 callersFunctionbuildSpan
(classname, insideSpan, leaveOpen, noPrefix)
docs/legacy-docs/js/index.js:7805
↓ 4 callersFunctionclamp
(number, min, max)
src/js/utils/num.js:20
↓ 4 callersMethodclearTimersOnDispose_
* A function to setup `requestAnimationFrame`, `setTimeout`, * and `setInterval`, clearing on dispose. * * > Previously each timer added and
src/js/component.js:1796
↓ 4 callersFunctioncomputedStyle
(el, prop)
src/js/utils/dom.js:855
↓ 4 callersMethoddefaultMuted
()
test/unit/tech/tech-faker.js:127
↓ 4 callersFunctiondeprecate
(message, fn)
src/js/utils/deprecate.js:22
↓ 4 callersMethoddisable
* Disable the `Button` element so that it cannot be activated or clicked. Use this with * {@link Button#enable}.
src/js/button.js:99
↓ 4 callersMethoddisable
()
src/js/control-bar/progress-control/seek-bar.js:398
↓ 4 callersFunctionemitReadable
(stream)
docs/legacy-docs/js/index.js:4353
↓ 4 callersMethodended
* 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 callersFunctiongetLanguage
(name)
docs/legacy-docs/js/index.js:8150
↓ 4 callersFunctiongetMimetype
(src = '')
src/js/utils/mimetypes.js:45
↓ 4 callersFunctiongetStyleText
(styleEl)
test/unit/player.test.js:631
↓ 4 callersMethodhandleMouseOut
* 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 callersMethodisTech
(component)
src/js/tech/tech.js:997
↓ 4 callersFunctionmap
* A generic `Array#map` utility function. * @private * @param {Array} array The array to iterate over.
docs/legacy-docs/js/index.js:3093
↓ 4 callersFunctionobjName
(obj)
src/js/mixins/evented.js:12
↓ 4 callersFunctionobjectWriteUInt16
(buf, value, offset, littleEndian)
docs/legacy-docs/js/index.js:1184
↓ 4 callersFunctionobjectWriteUInt32
(buf, value, offset, littleEndian)
docs/legacy-docs/js/index.js:1221
↓ 4 callersMethodplaysinline
* 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 callersFunctionpluginExists
(name)
src/js/plugin.js:46
↓ 4 callersMethodremove
* 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 callersMethodremoveSourceElement
()
test/unit/tech/tech-faker.js:115
↓ 4 callersMethodrunPlayTerminatedQueue_
* 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 callersMethodsetSrc
* 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 callersFunctionsetupAfterEach
(totalSourcesets)
test/unit/sourceset.test.js:93
↓ 4 callersFunctionsetupEnv
(env, testName)
test/unit/sourceset.test.js:68
↓ 4 callersFunctiontestHelperMakeTag
()
test/api/api.js:270
↓ 4 callersFunctiontoLowerCase
(string)
src/js/utils/str.js:15
↓ 4 callersMethodtrigger
(event, hash)
src/js/component.js:224
↓ 4 callersFunctiontriggerSetupEvent
(player, hash, before)
src/js/plugin.js:91
↓ 4 callersMethodupdate
* 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 callersMethodupdateSourceCaches_
* Update the internal source caches so that we return the correct source from * `src()`, `currentSource()`, and `currentSources()`. * * > Not
src/js/player.js:1577
← previousnext →201–300 of 1,624, ranked by callers