MCPcopy Create free account

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

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

↓ 14 callersMethodsetCues_
* A setter for cues in this list. Creates getters * an an index for the cues. * * @param {Array} cues * An array of cues to set
src/js/tracks/text-track-cue-list.js:61
↓ 14 callersMethodtech
* Return a reference to the current {@link Tech}. * It will print a warning by default about the danger of using the tech directly * but any arg
src/js/player.js:1359
↓ 14 callersMethodtoString
()
test/unit/utils/obj.test.js:7
↓ 14 callersMethodvolume
* Get or set the current volume of the media * * @param {number} [percentAsDecimal] * The new volume as a decimal percent: *
src/js/player.js:2816
↓ 13 callersMethodadd
* Adds a component to the array of focusable components. * * @param {Component} component * The `Component` to be added.
src/js/spatial-navigation.js:426
↓ 13 callersMethodclear
* Clears array of focusable components.
src/js/spatial-navigation.js:457
↓ 13 callersMethodliveCurrentTime
* get what we expect the live current time to be * * @return {number} * The expected live current time
src/js/live-tracker.js:317
↓ 13 callersFunctionsilencePromise
(value)
src/js/utils/promise.js:24
↓ 13 callersMethoduserSeek_
* Prevent liveThreshold from causing seeks to seem like they * are not happening from a user perspective. * * @param {number} ct *
src/js/control-bar/progress-control/seek-bar.js:215
↓ 13 callersMethodusingNativeControls
* Toggle native controls on/off. Native controls are the controls built into * devices (e.g. default iPhone controls) or other techs * (e.g. Vim
src/js/player.js:4184
↓ 12 callersMethodclearTimeout
* Clears a timeout that gets created via `window.setTimeout` or * {@link Component#setTimeout}. If you set a timeout via {@link Component#setTimeou
src/js/component.js:1604
↓ 12 callersMethodcurrentBreakpointClass
* Get the current breakpoint class name. * * @return {string} * The matching class name (e.g. `"vjs-layout-tiny"` or * `"v
src/js/player.js:5110
↓ 12 callersFunctionisFunction
(arg)
docs/legacy-docs/js/index.js:2268
↓ 12 callersMethodisLive
* Determines if the player is live, only checks if this component * is tracking live playback or not * * @return {boolean} * Wheth
src/js/live-tracker.js:296
↓ 12 callersMethodloadMedia
* Populate the player using a {@link Player~MediaObject|MediaObject}. * * @param {Player~MediaObject} media * A media object. *
src/js/player.js:5168
↓ 12 callersMethodloadTech_
* Load/Create an instance of playback {@link Tech} including element * and API methods. Then append the `Tech` element in `Player` as a child. *
src/js/player.js:1183
↓ 12 callersFunctionlog
* Logs plain debug messages. Similar to `console.log`. * * Due to [limitations](https://github.com/jsdoc3/jsdoc/issues/955#issuecomment-31382914
src/js/utils/create-logger.js:107
↓ 12 callersMethodmuted
()
test/unit/tech/tech-faker.js:124
↓ 12 callersMethodname
* Get the `Component`s name. The name gets used to reference the `Component` * and is set during registration. * * @return {string} *
src/js/component.js:467
↓ 12 callersMethodoptions
* Deep merge of options objects with new options. * > Note: When both `obj` and `options` contain properties whose values are objects. *
src/js/component.js:324
↓ 12 callersMethodpause
* Pause the video playback
src/js/player.js:2486
↓ 11 callersMethodcontrols
()
test/unit/tech/tech-faker.js:160
↓ 11 callersMethodfluid
* A getter/setter/toggler for the vjs-fluid `className` on the `Player`. * * Turning this on will turn off fill mode. * * @param {boolean}
src/js/player.js:995
↓ 11 callersMethodgetTech
* Get a `Tech` from the shared list by name. * * @param {string} name * `camelCase` or `TitleCase` name of the Tech to get * * @
src/js/tech/tech.js:1048
↓ 11 callersMethodgetTrackById
* Get a Track from the TrackList by a tracks id * * @param {string} id - the id of the track to get * @method getTrackById * @return {Trac
src/js/tracks/track-list.js:152
↓ 11 callersMethodhasStarted
* Add/remove the vjs-has-started class * * * @param {boolean} request * - true: adds the class * - false: remove the clas
src/js/player.js:1724
↓ 11 callersMethodplaybackRate
()
test/unit/tech/tech-faker.js:78
↓ 11 callersMethodrequestFullscreen
* Increase the size of the video to full screen * In some browsers, full screen is not supported natively, so it enters * "full window mode", wh
src/js/player.js:2977
↓ 11 callersMethodwrite
* Write the time to the tooltip DOM element. * * @param {string} content * The formatted time for the tooltip.
src/js/control-bar/progress-control/time-tooltip.js:126
↓ 10 callersFunctiondecode
(elt)
docs/legacy-docs/js/index.js:1756
↓ 10 callersFunctionencode
(num)
docs/legacy-docs/js/index.js:1820
↓ 10 callersMethodfill
* A getter/setter/toggler for the vjs-fill `className` on the `Player`. * * Turning this on will turn off fluid mode. * * @param {boolean}
src/js/player.js:1032
↓ 10 callersMethodgetPositions
* Retrieves the position and size information of the component's element. * * @return {Object} An object with `boundingClientRect` and `center`
src/js/component.js:1304
↓ 10 callersMethodhandleTechDoubleClick_
* Handle a double-click on the media element to enter/exit fullscreen, * or exit documentPictureInPicture mode * * @param {Event} event *
src/js/player.js:2019
↓ 10 callersFunctionisArray
(ar)
docs/legacy-docs/js/index.js:5617
↓ 10 callersFunctionisUndefined
(arg)
docs/legacy-docs/js/index.js:2280
↓ 10 callersMethodliveWindow
* Get the live time window aka * the amount of time between seekable start and * live current time. * * @return {number} * The
src/js/live-tracker.js:278
↓ 10 callersMethodload
()
test/unit/tech/tech-faker.js:116
↓ 10 callersMethodplay
* Attempt to begin playback at the first opportunity. * * @return {Promise|undefined} * Returns a promise if the browser supports Pro
src/js/player.js:2387
↓ 10 callersMethodseekableStart
* A helper to get the player seekable start * so that we don't have to null check everywhere * * @return {number} * The earliest s
src/js/live-tracker.js:255
↓ 10 callersMethodsetInterval
* Creates a function that gets run every `x` milliseconds. This function is a wrapper * around `window.setInterval`. There are a few reasons to use
src/js/component.js:1633
↓ 10 callersMethodshow
* Show the `Component`s element if it is hidden by removing the * 'vjs-hidden' class name from it.
src/js/component.js:999
↓ 10 callersFunctiontryUpdateStyle
* Try to update the style of a DOM element. Some style changes will throw an error, * particularly in IE8. Those should be noops. * * @param {Eleme
src/js/tracks/text-track-display.js:73
↓ 9 callersMethodany
(type, fn)
src/js/component.js:201
↓ 9 callersMethodclearInterval
* Clears an interval that gets created via `window.setInterval` or * {@link Component#setInterval}. If you set an interval via {@link Component#set
src/js/component.js:1660
↓ 9 callersMethodgetIsAvailableToBeFocused
* Determine whether or not this component is currently visible/enabled/etc... * * @param {HTMLElement} el - The HTML element representing the co
src/js/component.js:1864
↓ 9 callersMethodgetPercent
* Get the percentage of media played so far. * * @return {number} * The percentage of media played so far (0 to 1).
src/js/control-bar/progress-control/seek-bar.js:264
↓ 9 callersMethodgetPlugins
* Gets an object containing multiple Video.js plugins. * * @param {Array} [names] * If provided, should be an array of plugin name
src/js/plugin.js:407
↓ 9 callersMethodhandleTechClick_
* Handle a click on the media element to play/pause * * @param {Event} event * the event that caused this function to trigger *
src/js/player.js:1979
↓ 9 callersFunctionisEvented
(object)
src/js/mixins/evented.js:41
↓ 9 callersMethodscrubbing
* Sets or returns whether or not the user is "scrubbing". Scrubbing is * when the user has clicked the progress bar handle and is * dragging it
src/js/player.js:2526
↓ 9 callersMethodseekableEnd
* A helper to get the player seekable end * so that we don't have to null check everywhere * * @return {number} * The furthest see
src/js/live-tracker.js:234
↓ 9 callersMethodset
()
src/js/tracks/track.js:83
↓ 9 callersMethodshow
* Show the `Component`s element if it is hidden by removing the * 'vjs-hidden' class name from it only in browsers that support the Picture-in-Pict
src/js/control-bar/picture-in-picture-toggle.js:140
↓ 9 callersFunctiontestStates
(statesObject, expectedEvents)
test/unit/tech/html5.test.js:698
↓ 9 callersMethodtoggleClass
* Add or remove a CSS class name from the component's element. * - `classToToggle` gets added when {@link Component#hasClass} would return false.
src/js/component.js:991
↓ 8 callersMethodaddSourceElement
()
test/unit/tech/tech-faker.js:114
↓ 8 callersMethodaddTextTrack
* A helper method for adding a {@link TextTrack} to our * {@link TextTrackList}. * * In addition to the W3C settings we allow adding addition
src/js/player.js:4745
↓ 8 callersFunctioncanHandleSource
()
test/unit/tech/tech.test.js:22
↓ 8 callersMethodcloseable
* Check to see if the `ModalDialog` is closeable via the UI. * * @param {boolean} [value] * If given as a boolean, it will set the `
src/js/modal-dialog.js:291
↓ 8 callersMethodcontent
* Gets or sets the modal content, which gets normalized before being * rendered into the DOM. * * This does not update the DOM or fill the mo
src/js/modal-dialog.js:427
↓ 8 callersFunctiondebounced
()
src/js/utils/fn.js:113
↓ 8 callersMethodderegisterPlugin
* De-register a Video.js plugin. * * @param {string} name * The name of the plugin to be de-registered. Must be a string that *
src/js/plugin.js:386
↓ 8 callersMethodfocus
* Focuses on a given component. * If the component is available to be focused, it focuses on the component. * If not, it attempts to find a suit
src/js/spatial-navigation.js:576
↓ 8 callersMethodgetTrackElementByTrack_
* Get an {@link HtmlTrackElement} from the `HtmlTrackElementList` given an * {@link TextTrack}. * * @param {TextTrack} track * The
src/js/tracks/html-track-element-list.js:73
↓ 8 callersFunctionisObject
(value)
src/js/utils/obj.js:93
↓ 8 callersMethodlastVolume_
* Get the last volume, or set it * * @param {number} [percentAsDecimal] * The new last volume as a decimal percent: * - 0
src/js/player.js:2905
↓ 8 callersMethodplaybackRate
* Gets or sets the current playback rate. A playback rate of * 1.0 represents normal speed and 0.5 would indicate half-speed * playback, for ins
src/js/player.js:4506
↓ 8 callersFunctionprogress
()
rollup.config.js:90
↓ 8 callersMethodresponsive
* Get or set a flag indicating whether or not this player should adjust * its UI based on its dimensions. * * @param {boolean} [value] *
src/js/player.js:5058
↓ 8 callersMethodscrubbing
* Get whether we are scrubbing or not * * @abstract * * @see {Html5#scrubbing}
src/js/tech/tech.js:524
↓ 8 callersMethodsetIcon
* Adds an SVG icon element to another element or component. * * @param {string} iconName * The name of icon. A list of all the icon na
src/js/component.js:554
↓ 8 callersFunctionsetTechFaker
(src)
test/unit/sourceset.test.js:837
↓ 8 callersFunctionstateful
* Applies {@link module:stateful~StatefulMixin|StatefulMixin} to a target * object. * * If the target object is {@link module:evented|evented} and
src/js/mixins/stateful.js:105
↓ 7 callersFunctionallocate
(that, length)
docs/legacy-docs/js/index.js:371
↓ 7 callersMethodatLiveEdge
* Determines if currentTime is at the live edge and won't fall behind * on each seekableendchange * * @return {boolean} * Whether
src/js/live-tracker.js:307
↓ 7 callersMethodautoplay
* Get or set the autoplay option. When this is a boolean it will * modify the attribute on the tech. When this is a string the attribute on * th
src/js/player.js:3960
↓ 7 callersMethodcanPlayType
* Check if the tech can support the given mime-type. * * The base tech does not support any type, but source handlers might * overwrite this.
src/js/tech/tech.js:954
↓ 7 callersFunctionconfirmSetting
(prop, val)
test/unit/player.test.js:637
↓ 7 callersMethodcontrols
* Get or set whether or not the controls are showing. * * @fires Player#controlsenabled * * @param {boolean} [bool] * - true to
src/js/player.js:4123
↓ 7 callersMethodcreateEl
()
test/unit/component.test.js:927
↓ 7 callersMethodcrossOrigin
()
test/unit/tech/tech-faker.js:166
↓ 7 callersMethodcurrentWidth
* Get the computed width of the component's element. * * Uses `window.getComputedStyle`. * * @return {number} * The computed wi
src/js/component.js:1278
↓ 7 callersFunctionerror
* A generic error utility function. * @private * @param {String} type The error type. * @returns {E
docs/legacy-docs/js/index.js:3081
↓ 7 callersMethoderror
* Get or set an error on the Tech. * * @param {MediaError} [err] * Error to set on the Tech * * @return {MediaError|null} *
src/js/tech/tech.js:471
↓ 7 callersMethodexitFullscreen
* Return the video to its normal size after having been in full screen mode * * @fires Player#fullscreenchange
src/js/player.js:3054
↓ 7 callersFunctionfindObjectsInArray
* find indexes of a set of object in array of objects * based on some property value * generally useful for finding several objects * * @param {ar
docs/legacy-docs/api/js/doc-script.js:85
↓ 7 callersMethodgetDescendant
* Returns the descendant `Component` following the givent * descendant `names`. For instance ['foo', 'bar', 'baz'] would * try to get 'foo' on t
src/js/component.js:525
↓ 7 callersFunctionhooks
(type, fn)
src/js/utils/hooks.js:21
↓ 7 callersFunctionisNull
(arg)
docs/legacy-docs/js/index.js:5627
↓ 7 callersFunctionlisten
(target, method, type, listener)
src/js/mixins/evented.js:219
↓ 7 callersMethodlog
()
test/unit/plugin-advanced.test.js:87
↓ 7 callersMethodregisterTech
* Registers a `Tech` into a shared list for videojs. * * @param {string} name * Name of the `Tech` to register. * * @param {Obje
src/js/tech/tech.js:1012
↓ 7 callersMethodremoveRemoteTextTrack
* Remove a remote {@link TextTrack} from the respective * {@link TextTrackList} and {@link HtmlTrackElementList}. * * @param {Object} track
src/js/player.js:4784
↓ 7 callersMethodrequestPictureInPicture
* Create a floating video window always on top of other windows so that users may * continue consuming media while they interact with other content
src/js/player.js:3232
↓ 7 callersMethodselected
* Set the state for this menu item as selected or not. * * @param {boolean} selected * if the menu item is selected or not
src/js/menu/menu-item.js:124
↓ 7 callersMethodstepForward
* Move to next (lower) menu item for keyboard users.
src/js/menu/menu.js:233
↓ 7 callersMethodtriggerSourceset
* A special function to trigger source set in a way that will allow player * to re-trigger if the player or tech are not ready yet. * * @fire
src/js/tech/tech.js:177
↓ 7 callersMethodupdateDisplayOverlay
* Updates the displayed TextTrack to be sure it overlays the video when a either * a {@link Player#texttrackchange} or a {@link Player#fullscreench
src/js/tracks/text-track-display.js:370
↓ 7 callersMethodupdateFocusableComponents
* Gets a set of focusable components. * * @return {Array} * Returns an array of focusable components.
src/js/spatial-navigation.js:251
← previousnext →101–200 of 1,624, ranked by callers