MCPcopy Create free account

hub / github.com/GoogleChrome/kino / functions

Functions209 in github.com/GoogleChrome/kino

↓ 15 callersMethodadd
* 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 callersMethodget
* Returns a previously instantiated VideoDownloader. * * @param {string} videoId Get the `VideoDownloader` instance for this video id. * @ret
src/js/classes/VideoDownloaderRegistry.js:54
↓ 6 callersMethodput
(data, storeName)
src/js/classes/IDBConnection.js:196
↓ 6 callersMethodroute
* Registers a route. * * @param {string} path Route path. * @param {Function} callback Callback method.
src/js/classes/Router.js:53
↓ 5 callersMethodbroadcast
* 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 callersMethoddispatchDataChangedEvent
* Dispatch an event signalling that data in IDB * has changed.
src/js/classes/IDBConnection.js:209
↓ 5 callersFunctionloadSetting
(key)
src/js/utils/settings.js:29
↓ 5 callersMethodpause
* Pauses the download.
src/js/classes/DownloadManager.js:219
↓ 4 callersMethodgetId
* Returns the associated video ID. * * @returns {string} Video ID.
src/js/web-components/video-download/VideoDownloader.js:484
↓ 4 callersMethodgetStatusDetail
* Returns detailed information about the current status. * * @returns {object} Detailed information about the status.
src/js/classes/ConnectionStatus.js:75
↓ 4 callersMethodplay
* 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 callersMethodrender
()
src/js/web-components/video-grid/VideoGrid.js:59
↓ 3 callersFunctionappendVideoToGallery
* @param {RouterContext} routerContext Context passed through by Router. * @param {object} localContext Additional data needed by this method
src/js/utils/appendVideoToGallery.js:23
↓ 3 callersMethodattachFlushHandler
* Attaches a handler to receive downloaded data. * * @param {DownloadFlushHandler} flushHandler Flush handler.
src/js/classes/DownloadManager.js:86
↓ 3 callersMethodbufferAhead
* 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 callersMethodgetAll
* Returns an iterator over all stored instances. * * @returns {Iterator<string, VideoDownloader>} Iterator over all VideoDownloader instance.
src/js/classes/VideoDownloaderRegistry.js:63
↓ 3 callersFunctiongetRepresentationMimeString
(representation)
src/js/utils/getRepresentationMimeString.js:23
↓ 3 callersMethodinit
()
src/js/classes/Router.js:75
↓ 3 callersMethodremoveFromIDB
* Removes the current video from IDB.
src/js/web-components/video-download/VideoDownloader.js:511
↓ 3 callersMethodrenderPage
* 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 callersMethodstep
* 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 callersMethodsubscribe
* 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 callersMethodassignConnectionStatus
* @param {ConnectionStatus} connectionStatus ConnectionStatus instance.
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:79
↓ 2 callersFunctionattachAndPlay
()
src/js/pages/Video.js:163
↓ 2 callersMethodcancel
* Cancels all storage operations.
src/js/classes/StorageManager.js:50
↓ 2 callersFunctionclearOverlay
()
src/js/pages/Video.js:191
↓ 2 callersMethodcreate
* Creates a new `VideoDownloader` instance for the given `videoId`. * * @param {string} videoId Video ID. * @returns {VideoDownloader} Inst
src/js/classes/VideoDownloaderRegistry.js:42
↓ 2 callersFunctioncreateOverlayButton
({ markup, action, callback })
src/js/pages/Video.js:36
↓ 2 callersFunctiondarkModeChangeHandler
(isDarkMode)
src/index.js:65
↓ 2 callersMethoddownload
* 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 callersMethodflush
* 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 callersMethodforcePause
* Pauses the current download and forces the associated * `VideoDownloader` instance to render the paused UI, too.
src/js/classes/DownloadManager.js:227
↓ 2 callersFunctiongenerateApi
()
src/js/utils/generateApi.js:98
↓ 2 callersFunctiongetDecodingInfo
(mediaConfig)
src/js/utils/getDecodingInfo.js:7
↓ 2 callersFunctiongetMediaConfigurationAudio
(representation)
src/js/utils/getMediaConfiguration.js:53
↓ 2 callersFunctiongetMediaConfigurationVideo
(representation)
src/js/utils/getMediaConfiguration.js:16
↓ 2 callersFunctiongetProgress
(fileMetas)
src/js/utils/getProgress.js:7
↓ 2 callersFunctioninterpolateChunkURL
(chunkURL, representationObject, chunkIndex = 0)
src/js/classes/ParserMPD.js:28
↓ 2 callersFunctionisVideoAvailable
(downloaderOrState)
src/js/pages/Video.js:127
↓ 2 callersFunctioniso8601TimeDurationToSeconds
* 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 callersMethodmaybePrepareNextFile
* 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 callersMethodprepareFileMeta
* 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 callersFunctionremoveSetting
(key)
src/js/utils/settings.js:38
↓ 2 callersMethodrender
* Renders the toggle button.
src/js/web-components/toggle-button/ToggleButton.js:86
↓ 2 callersFunctionrenderOverlay
({ buttonElement, markup = '' })
src/js/pages/Video.js:181
↓ 2 callersFunctionrenderPage
()
src/js/pages/Downloads.js:96
↓ 2 callersFunctionrewriteURL
(videoId, sourceUrl, from, to)
src/js/utils/rewriteURL.js:32
↓ 2 callersMethodrun
* Starts downloading files. * * @param {Response[]} [responses] Already prepared responses for (some of) the donwloaded *
src/js/classes/DownloadManager.js:273
↓ 2 callersFunctionsaveSetting
(key, value)
src/js/utils/settings.js:21
↓ 2 callersMethodstart
(videoData)
src/js/classes/BackgroundFetch.js:32
↓ 2 callersMethodsubscribe
* Subscribe to connection status changes. * * @param {Function} callback Callback function to run when connection status changes.
src/js/classes/ConnectionStatus.js:88
↓ 2 callersMethodwarning
* 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 callersMethodalert
* 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 callersFunctionapplyCastState
()
src/index.js:179
↓ 1 callersMethodbufferSetup
* Sets up a fixed buffer that emits reasonably sized downloaded chunks of data.
src/js/classes/DownloadManager.js:105
↓ 1 callersFunctionbuttonInteractionHandler
(forceOffline, connectionStatus)
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:28
↓ 1 callersMethodcancel
* Cancels any ongoing operation.
src/js/web-components/video-download/VideoDownloader.js:448
↓ 1 callersMethodcloneBuffer
* Clones an `Uint8Array` object. * * @param {Uint8Array} source Source buffer typed array. * @returns {Uint8Array} Cloned array;
src/js/classes/FixedBuffer.js:96
↓ 1 callersMethodcreatePiPButton
* 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 callersMethodcrop
* 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 callersFunctiondataAccessorFactory
(abstractedIDB)
src/js/classes/IDBConnection.js:86
↓ 1 callersFunctiondbFactory
(idbConnection)
src/js/classes/IDBConnection.js:190
↓ 1 callersFunctiondecryptVideo
(videoElement, encryption)
src/js/utils/decryptVideo.js:96
↓ 1 callersMethoddestroyAll
* Detaches the `VideoDownload` instances and leaves them to be * garbage collected.
src/js/classes/VideoDownloaderRegistry.js:71
↓ 1 callersFunctiondisplayQuota
()
src/js/pages/Downloads.js:76
↓ 1 callersMethoddownloadFile
* Downloads the first file that is not fully downloaded.
src/js/classes/DownloadManager.js:149
↓ 1 callersMethoddownloadSynchronously
* 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 callersMethoddownloadUsingBackgroundFetch
()
src/js/web-components/video-download/VideoDownloader.js:278
↓ 1 callersFunctionextractVideoData
({ apiData, path })
src/js/pages/Video.js:93
↓ 1 callersFunctionfileAccessorFactory
(abstractedIDB)
src/js/classes/IDBConnection.js:101
↓ 1 callersMethodflush
* 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 callersMethodforceOffline
* Toggle forced offline mode on.
src/js/classes/ConnectionStatus.js:57
↓ 1 callersMethodfromRegistration
* * @param {BackgroundFetchRegistration} registration Background Fetch Registration object.
src/js/classes/BackgroundFetch.js:25
↓ 1 callersFunctiongenerateApiData
()
src/js/utils/generateApi.js:62
↓ 1 callersFunctiongenerateCache
()
src/js/utils/generateCache.js:45
↓ 1 callersFunctiongenerateLicense
(message)
src/js/utils/decryptVideo.js:64
↓ 1 callersMethodgetBaseUrl
* 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 callersMethodgetBufferHealth
* Returns health information about the provided buffer. * * @param {SourceBuffer} buffer SourceBuffer to determine health for. * @returns {he
src/js/classes/Streamer.js:554
↓ 1 callersMethodgetDownlink
* 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 callersMethodgetDuration
* Returns the duration of the whole media in seconds. * * @returns {number} Media duration.
src/js/classes/ParserMPD.js:247
↓ 1 callersFunctiongetFiles
* 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 callersFunctiongetFiles
* 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 callersMethodgetMediaSessionArtworkUrls
* 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 callersMethodgetMeta
* @returns {VideoMeta} Video meta value.
src/js/web-components/video-download/VideoDownloader.js:468
↓ 1 callersFunctiongetMimeByURL
(url)
src/js/utils/getMimeByURL.js:23
↓ 1 callersMethodgetMinBufferTime
* Returns the minimum healthy buffer duration. * * @returns {number} Healthy buffer duration.
src/js/classes/ParserMPD.js:235
↓ 1 callersFunctiongetPosterMarkup
({ title, thumbnail })
src/js/pages/Video.js:73
↓ 1 callersMethodgetPosterURLs
* Returns the thumbnail image URLs. * * @returns {string[]} URLs.
src/js/web-components/video-download/VideoDownloader.js:186
↓ 1 callersMethodgetRepresentationsByBandwidth
* 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 callersFunctiongetResponse
()
src/js/sw/sw.js:203
↓ 1 callersFunctiongetResponseStream
(request, db, fileMeta)
src/js/sw/sw.js:43
↓ 1 callersMethodgetSourceHTML
* 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 callersFunctiongetSourceInfo
* Returns information related to a single source. * * @param {videoSource} source Source information from the API. * @param {HTMLVideoElement
src/js/utils/selectSource.js:27
↓ 1 callersMethodgetSubtitlesUrls
* Returns the subtitles URLs. * * @returns {string[]} URLs.
src/js/web-components/video-download/VideoDownloader.js:201
↓ 1 callersMethodgetTracksHTML
* 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 callersFunctiongetVideoSources
(videoId)
src/js/utils/getVideoSources.js:25
↓ 1 callersMethodinit
* 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 callersFunctioninitCastApi
()
src/index.js:188
↓ 1 callersMethodinitMediaSession
* 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 callersMethodinitializeBuffers
* 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