Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleChrome/kino
/ functions
Functions
209 in github.com/GoogleChrome/kino
⨍
Functions
209
◇
Types & classes
32
↓ 1 callers
Method
initializeMediaSource
* Initializes the Media Source and appends it to a video element. * * @returns {Promise} Promise that resolves with opened MediaSource instance.
src/js/classes/Streamer.js:170
↓ 1 callers
Method
initializeRepresentations
* Figures out which representations are best to be used on a current device.
src/js/classes/Streamer.js:131
↓ 1 callers
Method
initializeSourceBuffer
* Initializes and returns a SourceBuffer. * * Also extends it with `dataQueue` and `fileQueue` objects that * simplify pumping chunks of data
src/js/classes/Streamer.js:404
↓ 1 callers
Method
initializeStream
* Picks a streaming <source> and plays it using MSE. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API
src/js/web-components/video-player/VideoPlayer.js:210
↓ 1 callers
Method
initializeStream
* Initializes all the differents parts of the stream.
src/js/classes/Streamer.js:141
↓ 1 callers
Method
listAllChunkURLs
* Returns a list of all chunk files referenced in the manifest. * * @returns {string[]} List of chunk file URLs referenced in the manifest.
src/js/classes/ParserMPD.js:209
↓ 1 callers
Method
maybeAbort
(swReg)
src/js/classes/BackgroundFetch.js:16
↓ 1 callers
Function
maybeGetVideoResponse
(event)
src/js/sw/sw.js:150
↓ 1 callers
Function
metaAccessorFactory
(abstractedIDB)
src/js/classes/IDBConnection.js:26
↓ 1 callers
Method
mute
* Mutes the video.
src/js/web-components/video-player/VideoPlayer.js:83
↓ 1 callers
Method
navigate
* Invoked when an internal link is clicked / tapped. * * @param {string} href Target URL to navigate to.
src/js/classes/Router.js:136
↓ 1 callers
Function
networkChangeHandler
(button, connectionStatus)
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:50
↓ 1 callers
Method
observeVideoUpdates
* Observes the video player for `currentTime` updates and add more data * to the buffer if necessary.
src/js/classes/Streamer.js:204
↓ 1 callers
Method
queryRepresentations
* Queries the representations. * * @param {string} representationQuery Query representation attrs, e.g. '[mimeType="video/webm"]' * @param {s
src/js/classes/ParserMPD.js:262
↓ 1 callers
Function
removeFileChunks
(file)
src/js/classes/IDBConnection.js:270
↓ 1 callers
Method
render
* Renders the component. * * @param {object} videoData Video data.
src/js/web-components/video-player/VideoPlayer.js:99
↓ 1 callers
Method
render
* Renders the UI. * * @returns {void}
src/js/web-components/video-download/VideoDownloader.js:339
↓ 1 callers
Method
saveToCache
* Saves assets to the specified cache using Cache API. * * @param {string[]} urls Array of URLs to be saved to the cache.
src/js/web-components/video-download/VideoDownloader.js:226
↓ 1 callers
Function
selectRepresentationsByRequirements
( representations, contentType, requirements = [ { supported: true, smooth: true,
src/js/utils/selectRepresentations.js:34
↓ 1 callers
Method
setDownloadState
* Retrieve information about video download state and update * component's `state` and `progress` attribute values.
src/js/web-components/video-download/VideoDownloader.js:492
↓ 1 callers
Method
setMeta
* @param {VideoMeta} meta Video meta value.
src/js/web-components/video-download/VideoDownloader.js:475
↓ 1 callers
Method
setNewToggleState
(isChecked)
src/js/web-components/toggle-button/ToggleButton.js:62
↓ 1 callers
Function
setupDownloader
(videoData, { videoDownloaderRegistry })
src/js/pages/Video.js:54
↓ 1 callers
Function
setupManualPlayButton
()
src/js/pages/Video.js:198
↓ 1 callers
Function
setupUnmuteButton
(videoPlayer)
src/js/pages/Video.js:217
↓ 1 callers
Method
throttleBuffer
* "Locks" buffering for 0.5 second.
src/js/classes/Streamer.js:377
↓ 1 callers
Method
unforceOffline
* Toggle forced offline mode off.
src/js/classes/ConnectionStatus.js:65
↓ 1 callers
Method
unmute
* Unmutes the video.
src/js/web-components/video-player/VideoPlayer.js:90
↓ 1 callers
Method
unthrottleBuffer
* "Unlocks" buffering.
src/js/classes/Streamer.js:387
↓ 1 callers
Method
unwrap
()
src/js/classes/IDBConnection.js:216
Method
add
* @param {Uint8Array} data Data to be added to the buffer.
src/js/classes/FixedBuffer.js:41
Method
append
* Appends data to the buffer. * * @param {Uint8Array} data Data.
src/js/classes/Streamer.js:423
Method
attributeChangedCallback
()
src/js/web-components/video-grid/VideoGrid.js:55
Method
attributeChangedCallback
* Observed attributes callbacks. * * @param {string} name Attribute name. * @param {*} old Previous attribute value. * @param {*}
src/js/web-components/video-download/VideoDownloader.js:126
Method
attributeChangedCallback
(name)
src/js/web-components/toggle-button/ToggleButton.js:79
Function
bgFetchHandler
(e)
src/js/sw/sw.js:249
Method
bufferFlushed
* When the fixed buffer is flushed, update the current file meta * information appropriately and run the `onflush` handler. * * @param {Uint8
src/js/classes/DownloadManager.js:128
Method
bytesLeft
()
src/js/classes/FixedBuffer.js:34
Method
cancel
* Cancels the download.
src/js/classes/DownloadManager.js:250
Method
category
()
src/js/web-components/video-grid/VideoGrid.js:47
Method
checked
()
src/js/web-components/toggle-button/ToggleButton.js:45
Function
clearOldCaches
(event)
src/js/sw/sw.js:181
Method
clickHandler
* Responds to a Download / Pause / Cancel click. * * @param {Event} e Click event.
src/js/web-components/video-download/VideoDownloader.js:417
Method
clickHandler
* Responds to click events anywhere in the document and when * the click happens on a link that is supposed to be handled * by the router, loads
src/js/classes/Router.js:64
Method
connectedCallback
* After the components is attached to DOM, set up some defaults.
src/js/web-components/video-download/VideoDownloader.js:55
Function
connectionStatusChangeHandler
* When the connection status changes, enable or disable the card * with respect to the download state. * * @param {ConnectionStatus} connectionStat
src/js/web-components/video-card/VideoCard.js:26
Method
constructor
* @param {VideoDownloader} downloader Video downloader associated with the current video.
src/js/web-components/video-player/VideoPlayer.js:39
Method
constructor
()
src/js/web-components/video-grid/VideoGrid.js:34
Method
constructor
({ connectionStatus })
src/js/web-components/video-download/VideoDownloader.js:35
Method
constructor
()
src/js/web-components/video-card/VideoCard.js:35
Method
constructor
()
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:66
Method
constructor
()
src/js/web-components/toggle-button/ToggleButton.js:28
Method
constructor
(db)
src/js/classes/IDBConnection.js:192
Method
constructor
* @param {number} sizeInBytes Buffer size in bytes.
src/js/classes/FixedBuffer.js:25
Method
constructor
({ connectionStatus })
src/js/classes/VideoDownloaderRegistry.js:27
Method
constructor
* Instantiates the download manager. * * @param {string} videoId Video ID of the media to be downloaded.
src/js/classes/DownloadManager.js:52
Method
constructor
* Construct a new Background Fetch wrapper.
src/js/classes/BackgroundFetch.js:9
Method
constructor
* Instantiates the storage manager. * * @param {string} videoId Video ID to identify stored data. * @param {object} opts
src/js/classes/StorageManager.js:37
Method
constructor
* @param {HTMLVideoElement} videoEl Video element. * @param {ParserMPD} parser MPD parser instance. * @param {object} opts
src/js/classes/Streamer.js:49
Method
constructor
(manifest, manifestSrc)
src/js/classes/ParserMPD.js:158
Method
constructor
* * @param {object} context Any initial context to be passed to pages.
src/js/classes/Router.js:26
Method
constructor
(offlineForced = false)
src/js/classes/ConnectionStatus.js:26
Function
cursorReader
(e)
src/js/classes/IDBConnection.js:144
Method
downloading
()
src/js/web-components/video-download/VideoDownloader.js:81
Function
errHandler
(videoPlayer)
src/js/pages/Video.js:241
Function
fetchHandler
(event)
src/js/sw/sw.js:202
Function
get
* @param {string} videoId Video ID. * @returns {object} Video meta object.
src/js/classes/IDBConnection.js:34
Function
getAll
* Gets all video meta. * * @returns {object[]} Array of video meta objects.
src/js/classes/IDBConnection.js:56
Function
getByVideoId
* Returns files associated with a particular video ID. * * @param {string} videoId Video ID. * @returns {FileMeta[]} File meta entries.
src/js/classes/IDBConnection.js:132
Function
getInitialSegment
(representationObject)
src/js/classes/ParserMPD.js:64
Method
getOpt
* Get a value from options passed to the Streamer constructor. * * @param {string} name Name of the option to be retrived. * @param {
src/js/classes/Streamer.js:360
Function
getSegmentByIndex
(representationObject, index)
src/js/classes/ParserMPD.js:51
Function
getSegmentIndexByTime
(representationObject, time)
src/js/classes/ParserMPD.js:79
Method
getUpdateHandler
()
src/js/web-components/video-player/VideoPlayer.js:329
Function
handleEncrypted
({ initDataType, initData })
src/js/utils/decryptVideo.js:97
Method
handleVideoError
* Handler for errors emitted by the <video> tag or any of its descendants. * * @param {Event} e Error event.
src/js/web-components/video-player/VideoPlayer.js:190
Method
initCast
* Initializes Google Cast functionality. * * @param {SessionStateEventData} e SessionStateEventData instance. * @returns {void}
src/js/web-components/video-player/VideoPlayer.js:465
Method
nocontrols
()
src/js/web-components/video-download/VideoDownloader.js:111
Method
observedAttributes
()
src/js/web-components/video-grid/VideoGrid.js:43
Method
observedAttributes
* @type {string[]}
src/js/web-components/video-download/VideoDownloader.js:31
Method
observedAttributes
()
src/js/web-components/toggle-button/ToggleButton.js:41
Method
onPauseDownload
* When a pause request is received, we need to pause the download. * * @param {CustomEvent} e Pause event. * @param {string} e.detail Video I
src/js/classes/VideoDownloaderRegistry.js:81
Function
precacheAssets
(event)
src/js/sw/sw.js:168
Method
prependBaseURL
(filename)
src/js/classes/ParserMPD.js:222
Method
progress
()
src/js/web-components/video-download/VideoDownloader.js:89
Function
pull
(controller)
src/js/sw/sw.js:57
Function
put
* Request to add or update video meta in IDB. * * @param {object} videoMetaData Video meta to be stored. * @returns {Array} Array containing
src/js/classes/IDBConnection.js:81
Method
readChunk
()
src/js/classes/Streamer.js:491
Method
render
({ videoData, connectionStatus, downloader, })
src/js/web-components/video-card/VideoCard.js:40
Function
representationElementToObject
(representationElement)
src/js/classes/ParserMPD.js:130
Method
resolvePlayIntent
()
src/js/web-components/video-player/VideoPlayer.js:375
Method
sampleVideoQuality
* Check the video playback quality metrics provided by Video Playback Quality API * and store the current numbers.
src/js/classes/Streamer.js:674
Method
seekHandler
(details)
src/js/web-components/video-player/VideoPlayer.js:273
Method
setNewToggleState
* We override default toggling logic with custom implementation.
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:74
Method
setOpt
* Sets an option value. * * @param {string} name Name of the option to be used for storage. * @param {*} value Value to be stored.
src/js/classes/Streamer.js:370
Method
setPipButton
()
src/js/web-components/video-player/VideoPlayer.js:414
Method
setting
()
src/js/web-components/toggle-button/ToggleButton.js:54
Method
startVideoQualitySampling
* Starts video quality sampling using the Video Playback Quality API. * * @returns {void}
src/js/classes/Streamer.js:652
Method
state
* Reflected DOM Attributes. * * @returns {string} Components state string.
src/js/web-components/video-download/VideoDownloader.js:64
Method
status
* Returns the connection status, optionally overriden by the * offline status being forced. * * @returns {string} Connection status.
src/js/classes/ConnectionStatus.js:50
← previous
next →
101–200 of 209, ranked by callers