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
↓ 15 callers
Method
add
* Adds a file to be appended to the buffer. * * @param {object} fileObj File object. * @param {boolean} fileObj.force Fo
src/js/classes/Streamer.js:467
↓ 15 callers
Method
get
* Returns a previously instantiated VideoDownloader. * * @param {string} videoId Get the `VideoDownloader` instance for this video id. * @ret
src/js/classes/VideoDownloaderRegistry.js:54
↓ 6 callers
Method
put
(data, storeName)
src/js/classes/IDBConnection.js:196
↓ 6 callers
Method
route
* Registers a route. * * @param {string} path Route path. * @param {Function} callback Callback method.
src/js/classes/Router.js:53
↓ 5 callers
Method
broadcast
* Broadcast the status to all subscribers and emits a global event * signalling the change. * * @param {object} detail Detail object to be br
src/js/classes/ConnectionStatus.js:101
↓ 5 callers
Method
dispatchDataChangedEvent
* Dispatch an event signalling that data in IDB * has changed.
src/js/classes/IDBConnection.js:209
↓ 5 callers
Function
loadSetting
(key)
src/js/utils/settings.js:29
↓ 5 callers
Method
pause
* Pauses the download.
src/js/classes/DownloadManager.js:219
↓ 4 callers
Method
getId
* Returns the associated video ID. * * @returns {string} Video ID.
src/js/web-components/video-download/VideoDownloader.js:484
↓ 4 callers
Method
getStatusDetail
* Returns detailed information about the current status. * * @returns {object} Detailed information about the status.
src/js/classes/ConnectionStatus.js:75
↓ 4 callers
Method
play
* Signals the `play` intent to the <video> element. * * Waits for first data to arrive in case its `readyState` * indicates no data has been
src/js/web-components/video-player/VideoPlayer.js:371
↓ 4 callers
Method
render
()
src/js/web-components/video-grid/VideoGrid.js:59
↓ 3 callers
Function
appendVideoToGallery
* @param {RouterContext} routerContext Context passed through by Router. * @param {object} localContext Additional data needed by this method
src/js/utils/appendVideoToGallery.js:23
↓ 3 callers
Method
attachFlushHandler
* Attaches a handler to receive downloaded data. * * @param {DownloadFlushHandler} flushHandler Flush handler.
src/js/classes/DownloadManager.js:86
↓ 3 callers
Method
bufferAhead
* Inspects buffer health and loads more upcoming data to the buffer * if the amount of data in the buffer is considered unhealthy low.
src/js/classes/Streamer.js:585
↓ 3 callers
Method
getAll
* Returns an iterator over all stored instances. * * @returns {Iterator<string, VideoDownloader>} Iterator over all VideoDownloader instance.
src/js/classes/VideoDownloaderRegistry.js:63
↓ 3 callers
Function
getRepresentationMimeString
(representation)
src/js/utils/getRepresentationMimeString.js:23
↓ 3 callers
Method
init
()
src/js/classes/Router.js:75
↓ 3 callers
Method
removeFromIDB
* Removes the current video from IDB.
src/js/web-components/video-download/VideoDownloader.js:511
↓ 3 callers
Method
renderPage
* Finds appropriate callback and executes it. * * @param {string} href Target URL to navigate to. * @param {boolean} skipState Flag ind
src/js/classes/Router.js:93
↓ 3 callers
Method
step
* Buffer is ready to accept more data. Check the internal queue to see * if we have more data lined up.
src/js/classes/Streamer.js:434
↓ 3 callers
Method
subscribe
* Subscribe to state changes. * * @param {Function} callback Callback function to run when the component's state changes.
src/js/web-components/video-download/VideoDownloader.js:77
↓ 2 callers
Method
assignConnectionStatus
* @param {ConnectionStatus} connectionStatus ConnectionStatus instance.
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:79
↓ 2 callers
Function
attachAndPlay
()
src/js/pages/Video.js:163
↓ 2 callers
Method
cancel
* Cancels all storage operations.
src/js/classes/StorageManager.js:50
↓ 2 callers
Function
clearOverlay
()
src/js/pages/Video.js:191
↓ 2 callers
Method
create
* Creates a new `VideoDownloader` instance for the given `videoId`. * * @param {string} videoId Video ID. * @returns {VideoDownloader} Inst
src/js/classes/VideoDownloaderRegistry.js:42
↓ 2 callers
Function
createOverlayButton
({ markup, action, callback })
src/js/pages/Video.js:36
↓ 2 callers
Function
darkModeChangeHandler
(isDarkMode)
src/index.js:65
↓ 2 callers
Method
download
* Downloads the current video and its assets to the cache and IDB. * * @param {object} opts Download options. * @param {boolean} opts.assets
src/js/web-components/video-download/VideoDownloader.js:254
↓ 2 callers
Method
flush
* Flushes the downloaded data to any handlers. * * @param {FileMeta} fileMeta File meta. * @param {FileChunk} fileChunk File chunk. * @p
src/js/classes/DownloadManager.js:75
↓ 2 callers
Method
forcePause
* Pauses the current download and forces the associated * `VideoDownloader` instance to render the paused UI, too.
src/js/classes/DownloadManager.js:227
↓ 2 callers
Function
generateApi
()
src/js/utils/generateApi.js:98
↓ 2 callers
Function
getDecodingInfo
(mediaConfig)
src/js/utils/getDecodingInfo.js:7
↓ 2 callers
Function
getMediaConfigurationAudio
(representation)
src/js/utils/getMediaConfiguration.js:53
↓ 2 callers
Function
getMediaConfigurationVideo
(representation)
src/js/utils/getMediaConfiguration.js:16
↓ 2 callers
Function
getProgress
(fileMetas)
src/js/utils/getProgress.js:7
↓ 2 callers
Function
interpolateChunkURL
(chunkURL, representationObject, chunkIndex = 0)
src/js/classes/ParserMPD.js:28
↓ 2 callers
Function
isVideoAvailable
(downloaderOrState)
src/js/pages/Video.js:127
↓ 2 callers
Function
iso8601TimeDurationToSeconds
* Converts ISO 8601 time only (!) duration string to seconds. * * Example: * * "PT20.4S" -> 20.4 * "PT14M41.6S" -> 881.6 * * @param {string} du
src/js/classes/Duration.js:29
↓ 2 callers
Method
maybePrepareNextFile
* Sets the `currentFileMeta` to the first incomplete download. * Also sets the `done` property to indicate if all downloads are completed.
src/js/classes/DownloadManager.js:94
↓ 2 callers
Method
prepareFileMeta
* Generates a list of URLs to be downloaded and turns them into * a list of FileMeta objects that track download properties * for each of the fi
src/js/classes/DownloadManager.js:262
↓ 2 callers
Function
removeSetting
(key)
src/js/utils/settings.js:38
↓ 2 callers
Method
render
* Renders the toggle button.
src/js/web-components/toggle-button/ToggleButton.js:86
↓ 2 callers
Function
renderOverlay
({ buttonElement, markup = '' })
src/js/pages/Video.js:181
↓ 2 callers
Function
renderPage
()
src/js/pages/Downloads.js:96
↓ 2 callers
Function
rewriteURL
(videoId, sourceUrl, from, to)
src/js/utils/rewriteURL.js:32
↓ 2 callers
Method
run
* Starts downloading files. * * @param {Response[]} [responses] Already prepared responses for (some of) the donwloaded *
src/js/classes/DownloadManager.js:273
↓ 2 callers
Function
saveSetting
(key, value)
src/js/utils/settings.js:21
↓ 2 callers
Method
start
(videoData)
src/js/classes/BackgroundFetch.js:32
↓ 2 callers
Method
subscribe
* Subscribe to connection status changes. * * @param {Function} callback Callback function to run when connection status changes.
src/js/classes/ConnectionStatus.js:88
↓ 2 callers
Method
warning
* Handle a warning message. * * @todo Update to expose the warning to the user. * @param {string} message Error message.
src/js/classes/DownloadManager.js:242
↓ 1 callers
Method
alert
* Broadcast the detail information with alert flag set to true in order * to indicate user action that couldn't be finished because the client is o
src/js/classes/ConnectionStatus.js:117
↓ 1 callers
Function
applyCastState
()
src/index.js:179
↓ 1 callers
Method
bufferSetup
* Sets up a fixed buffer that emits reasonably sized downloaded chunks of data.
src/js/classes/DownloadManager.js:105
↓ 1 callers
Function
buttonInteractionHandler
(forceOffline, connectionStatus)
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:28
↓ 1 callers
Method
cancel
* Cancels any ongoing operation.
src/js/web-components/video-download/VideoDownloader.js:448
↓ 1 callers
Method
cloneBuffer
* Clones an `Uint8Array` object. * * @param {Uint8Array} source Source buffer typed array. * @returns {Uint8Array} Cloned array;
src/js/classes/FixedBuffer.js:96
↓ 1 callers
Method
createPiPButton
* Returns a button that controls the PiP functionality. * * @returns {HTMLButtonElement|null} Button element or null when PiP not supported.
src/js/web-components/video-player/VideoPlayer.js:402
↓ 1 callers
Method
crop
* Returns a buffer view represented by the provided bounds. * * @param {Uint8Array} data Data to be split by position * @param {Array}
src/js/classes/FixedBuffer.js:65
↓ 1 callers
Function
dataAccessorFactory
(abstractedIDB)
src/js/classes/IDBConnection.js:86
↓ 1 callers
Function
dbFactory
(idbConnection)
src/js/classes/IDBConnection.js:190
↓ 1 callers
Function
decryptVideo
(videoElement, encryption)
src/js/utils/decryptVideo.js:96
↓ 1 callers
Method
destroyAll
* Detaches the `VideoDownload` instances and leaves them to be * garbage collected.
src/js/classes/VideoDownloaderRegistry.js:71
↓ 1 callers
Function
displayQuota
()
src/js/pages/Downloads.js:76
↓ 1 callers
Method
downloadFile
* Downloads the first file that is not fully downloaded.
src/js/classes/DownloadManager.js:149
↓ 1 callers
Method
downloadSynchronously
* Takes a list of video URLs, downloads the video using a stream reader * and invokes `storeVideoChunk` to store individual video chunks in Indexed
src/js/web-components/video-download/VideoDownloader.js:297
↓ 1 callers
Method
downloadUsingBackgroundFetch
()
src/js/web-components/video-download/VideoDownloader.js:278
↓ 1 callers
Function
extractVideoData
({ apiData, path })
src/js/pages/Video.js:93
↓ 1 callers
Function
fileAccessorFactory
(abstractedIDB)
src/js/classes/IDBConnection.js:101
↓ 1 callers
Method
flush
* Resets the pointer position and calls `onflush` with current buffer data. * * @param {object} opts Any options to be piped to callback.
src/js/classes/FixedBuffer.js:77
↓ 1 callers
Method
forceOffline
* Toggle forced offline mode on.
src/js/classes/ConnectionStatus.js:57
↓ 1 callers
Method
fromRegistration
* * @param {BackgroundFetchRegistration} registration Background Fetch Registration object.
src/js/classes/BackgroundFetch.js:25
↓ 1 callers
Function
generateApiData
()
src/js/utils/generateApi.js:62
↓ 1 callers
Function
generateCache
()
src/js/utils/generateCache.js:45
↓ 1 callers
Function
generateLicense
(message)
src/js/utils/decryptVideo.js:64
↓ 1 callers
Method
getBaseUrl
* Returns the directory URL of the current manifest. * * @param {string} manifestSrc URL of the current manifest. * @returns {string} Directo
src/js/classes/ParserMPD.js:185
↓ 1 callers
Method
getBufferHealth
* Returns health information about the provided buffer. * * @param {SourceBuffer} buffer SourceBuffer to determine health for. * @returns {he
src/js/classes/Streamer.js:554
↓ 1 callers
Method
getDownlink
* Returns a reported or measured downlink capacity in MBits per second. * * @returns {number} Reported or measured downlink capacity in MBits pe
src/js/classes/Streamer.js:228
↓ 1 callers
Method
getDuration
* Returns the duration of the whole media in seconds. * * @returns {number} Media duration.
src/js/classes/ParserMPD.js:247
↓ 1 callers
Function
getFiles
* Iterator to recursively find all files in a given directory. * * @param {string} dir The directory to iterate over. * @yields {string} The next d
src/js/utils/generateCache.js:26
↓ 1 callers
Function
getFiles
* Iterator to recursively find all files in a given directory. * * @param {string} dir The directory to iterate over. * @yields {string} The next d
src/js/utils/generateApi.js:43
↓ 1 callers
Method
getMediaSessionArtworkUrls
* Returns the artwork images URLs used by Media Session API * to render the media popup / notification. * * @returns {string[]} URLs.
src/js/web-components/video-download/VideoDownloader.js:214
↓ 1 callers
Method
getMeta
* @returns {VideoMeta} Video meta value.
src/js/web-components/video-download/VideoDownloader.js:468
↓ 1 callers
Function
getMimeByURL
(url)
src/js/utils/getMimeByURL.js:23
↓ 1 callers
Method
getMinBufferTime
* Returns the minimum healthy buffer duration. * * @returns {number} Healthy buffer duration.
src/js/classes/ParserMPD.js:235
↓ 1 callers
Function
getPosterMarkup
({ title, thumbnail })
src/js/pages/Video.js:73
↓ 1 callers
Method
getPosterURLs
* Returns the thumbnail image URLs. * * @returns {string[]} URLs.
src/js/web-components/video-download/VideoDownloader.js:186
↓ 1 callers
Method
getRepresentationsByBandwidth
* Get a combination of video and audio media representations * that will fit currently available bandwidth. * * @todo Select appropriate audi
src/js/classes/Streamer.js:245
↓ 1 callers
Function
getResponse
()
src/js/sw/sw.js:203
↓ 1 callers
Function
getResponseStream
(request, db, fileMeta)
src/js/sw/sw.js:43
↓ 1 callers
Method
getSourceHTML
* Returns the <source> tags HTML to be included in the * <video> element. * * @returns {string} Sources HTML.
src/js/web-components/video-player/VideoPlayer.js:54
↓ 1 callers
Function
getSourceInfo
* Returns information related to a single source. * * @param {videoSource} source Source information from the API. * @param {HTMLVideoElement
src/js/utils/selectSource.js:27
↓ 1 callers
Method
getSubtitlesUrls
* Returns the subtitles URLs. * * @returns {string[]} URLs.
src/js/web-components/video-download/VideoDownloader.js:201
↓ 1 callers
Method
getTracksHTML
* Returns the <track> tags HTML to be included in the * <video> element. * * @returns {string} Tracks HTML.
src/js/web-components/video-player/VideoPlayer.js:70
↓ 1 callers
Function
getVideoSources
(videoId)
src/js/utils/getVideoSources.js:25
↓ 1 callers
Method
init
* Component logic. * * @param {object} videoData Video data coming from the API. * @param {string} cacheName Cache name.
src/js/web-components/video-download/VideoDownloader.js:158
↓ 1 callers
Function
initCastApi
()
src/index.js:188
↓ 1 callers
Method
initMediaSession
* Uses Media Session API to expose media controls outside the page. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Media_Session_API
src/js/web-components/video-player/VideoPlayer.js:232
↓ 1 callers
Method
initializeBuffers
* Initialize a `SourceBuffer` for each component of the stream, * e.g. one for video, one for audio.
src/js/classes/Streamer.js:189
next →
1–100 of 209, ranked by callers