MCPcopy Create free account

hub / github.com/GoogleChrome/kino / functions

Functions209 in github.com/GoogleChrome/kino

↓ 1 callersMethodinitializeMediaSource
* 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 callersMethodinitializeRepresentations
* Figures out which representations are best to be used on a current device.
src/js/classes/Streamer.js:131
↓ 1 callersMethodinitializeSourceBuffer
* 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 callersMethodinitializeStream
* 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 callersMethodinitializeStream
* Initializes all the differents parts of the stream.
src/js/classes/Streamer.js:141
↓ 1 callersMethodlistAllChunkURLs
* 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 callersMethodmaybeAbort
(swReg)
src/js/classes/BackgroundFetch.js:16
↓ 1 callersFunctionmaybeGetVideoResponse
(event)
src/js/sw/sw.js:150
↓ 1 callersFunctionmetaAccessorFactory
(abstractedIDB)
src/js/classes/IDBConnection.js:26
↓ 1 callersMethodmute
* Mutes the video.
src/js/web-components/video-player/VideoPlayer.js:83
↓ 1 callersMethodnavigate
* Invoked when an internal link is clicked / tapped. * * @param {string} href Target URL to navigate to.
src/js/classes/Router.js:136
↓ 1 callersFunctionnetworkChangeHandler
(button, connectionStatus)
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:50
↓ 1 callersMethodobserveVideoUpdates
* Observes the video player for `currentTime` updates and add more data * to the buffer if necessary.
src/js/classes/Streamer.js:204
↓ 1 callersMethodqueryRepresentations
* Queries the representations. * * @param {string} representationQuery Query representation attrs, e.g. '[mimeType="video/webm"]' * @param {s
src/js/classes/ParserMPD.js:262
↓ 1 callersFunctionremoveFileChunks
(file)
src/js/classes/IDBConnection.js:270
↓ 1 callersMethodrender
* Renders the component. * * @param {object} videoData Video data.
src/js/web-components/video-player/VideoPlayer.js:99
↓ 1 callersMethodrender
* Renders the UI. * * @returns {void}
src/js/web-components/video-download/VideoDownloader.js:339
↓ 1 callersMethodsaveToCache
* 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 callersFunctionselectRepresentationsByRequirements
( representations, contentType, requirements = [ { supported: true, smooth: true,
src/js/utils/selectRepresentations.js:34
↓ 1 callersMethodsetDownloadState
* 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 callersMethodsetMeta
* @param {VideoMeta} meta Video meta value.
src/js/web-components/video-download/VideoDownloader.js:475
↓ 1 callersMethodsetNewToggleState
(isChecked)
src/js/web-components/toggle-button/ToggleButton.js:62
↓ 1 callersFunctionsetupDownloader
(videoData, { videoDownloaderRegistry })
src/js/pages/Video.js:54
↓ 1 callersFunctionsetupManualPlayButton
()
src/js/pages/Video.js:198
↓ 1 callersFunctionsetupUnmuteButton
(videoPlayer)
src/js/pages/Video.js:217
↓ 1 callersMethodthrottleBuffer
* "Locks" buffering for 0.5 second.
src/js/classes/Streamer.js:377
↓ 1 callersMethodunforceOffline
* Toggle forced offline mode off.
src/js/classes/ConnectionStatus.js:65
↓ 1 callersMethodunmute
* Unmutes the video.
src/js/web-components/video-player/VideoPlayer.js:90
↓ 1 callersMethodunthrottleBuffer
* "Unlocks" buffering.
src/js/classes/Streamer.js:387
↓ 1 callersMethodunwrap
()
src/js/classes/IDBConnection.js:216
Methodadd
* @param {Uint8Array} data Data to be added to the buffer.
src/js/classes/FixedBuffer.js:41
Methodappend
* Appends data to the buffer. * * @param {Uint8Array} data Data.
src/js/classes/Streamer.js:423
MethodattributeChangedCallback
()
src/js/web-components/video-grid/VideoGrid.js:55
MethodattributeChangedCallback
* Observed attributes callbacks. * * @param {string} name Attribute name. * @param {*} old Previous attribute value. * @param {*}
src/js/web-components/video-download/VideoDownloader.js:126
MethodattributeChangedCallback
(name)
src/js/web-components/toggle-button/ToggleButton.js:79
FunctionbgFetchHandler
(e)
src/js/sw/sw.js:249
MethodbufferFlushed
* 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
MethodbytesLeft
()
src/js/classes/FixedBuffer.js:34
Methodcancel
* Cancels the download.
src/js/classes/DownloadManager.js:250
Methodcategory
()
src/js/web-components/video-grid/VideoGrid.js:47
Methodchecked
()
src/js/web-components/toggle-button/ToggleButton.js:45
FunctionclearOldCaches
(event)
src/js/sw/sw.js:181
MethodclickHandler
* Responds to a Download / Pause / Cancel click. * * @param {Event} e Click event.
src/js/web-components/video-download/VideoDownloader.js:417
MethodclickHandler
* 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
MethodconnectedCallback
* After the components is attached to DOM, set up some defaults.
src/js/web-components/video-download/VideoDownloader.js:55
FunctionconnectionStatusChangeHandler
* 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
Methodconstructor
* @param {VideoDownloader} downloader Video downloader associated with the current video.
src/js/web-components/video-player/VideoPlayer.js:39
Methodconstructor
()
src/js/web-components/video-grid/VideoGrid.js:34
Methodconstructor
({ connectionStatus })
src/js/web-components/video-download/VideoDownloader.js:35
Methodconstructor
()
src/js/web-components/video-card/VideoCard.js:35
Methodconstructor
()
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:66
Methodconstructor
()
src/js/web-components/toggle-button/ToggleButton.js:28
Methodconstructor
(db)
src/js/classes/IDBConnection.js:192
Methodconstructor
* @param {number} sizeInBytes Buffer size in bytes.
src/js/classes/FixedBuffer.js:25
Methodconstructor
({ connectionStatus })
src/js/classes/VideoDownloaderRegistry.js:27
Methodconstructor
* Instantiates the download manager. * * @param {string} videoId Video ID of the media to be downloaded.
src/js/classes/DownloadManager.js:52
Methodconstructor
* Construct a new Background Fetch wrapper.
src/js/classes/BackgroundFetch.js:9
Methodconstructor
* Instantiates the storage manager. * * @param {string} videoId Video ID to identify stored data. * @param {object} opts
src/js/classes/StorageManager.js:37
Methodconstructor
* @param {HTMLVideoElement} videoEl Video element. * @param {ParserMPD} parser MPD parser instance. * @param {object} opts
src/js/classes/Streamer.js:49
Methodconstructor
(manifest, manifestSrc)
src/js/classes/ParserMPD.js:158
Methodconstructor
* * @param {object} context Any initial context to be passed to pages.
src/js/classes/Router.js:26
Methodconstructor
(offlineForced = false)
src/js/classes/ConnectionStatus.js:26
FunctioncursorReader
(e)
src/js/classes/IDBConnection.js:144
Methoddownloading
()
src/js/web-components/video-download/VideoDownloader.js:81
FunctionerrHandler
(videoPlayer)
src/js/pages/Video.js:241
FunctionfetchHandler
(event)
src/js/sw/sw.js:202
Functionget
* @param {string} videoId Video ID. * @returns {object} Video meta object.
src/js/classes/IDBConnection.js:34
FunctiongetAll
* Gets all video meta. * * @returns {object[]} Array of video meta objects.
src/js/classes/IDBConnection.js:56
FunctiongetByVideoId
* Returns files associated with a particular video ID. * * @param {string} videoId Video ID. * @returns {FileMeta[]} File meta entries.
src/js/classes/IDBConnection.js:132
FunctiongetInitialSegment
(representationObject)
src/js/classes/ParserMPD.js:64
MethodgetOpt
* 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
FunctiongetSegmentByIndex
(representationObject, index)
src/js/classes/ParserMPD.js:51
FunctiongetSegmentIndexByTime
(representationObject, time)
src/js/classes/ParserMPD.js:79
MethodgetUpdateHandler
()
src/js/web-components/video-player/VideoPlayer.js:329
FunctionhandleEncrypted
({ initDataType, initData })
src/js/utils/decryptVideo.js:97
MethodhandleVideoError
* 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
MethodinitCast
* Initializes Google Cast functionality. * * @param {SessionStateEventData} e SessionStateEventData instance. * @returns {void}
src/js/web-components/video-player/VideoPlayer.js:465
Methodnocontrols
()
src/js/web-components/video-download/VideoDownloader.js:111
MethodobservedAttributes
()
src/js/web-components/video-grid/VideoGrid.js:43
MethodobservedAttributes
* @type {string[]}
src/js/web-components/video-download/VideoDownloader.js:31
MethodobservedAttributes
()
src/js/web-components/toggle-button/ToggleButton.js:41
MethodonPauseDownload
* 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
FunctionprecacheAssets
(event)
src/js/sw/sw.js:168
MethodprependBaseURL
(filename)
src/js/classes/ParserMPD.js:222
Methodprogress
()
src/js/web-components/video-download/VideoDownloader.js:89
Functionpull
(controller)
src/js/sw/sw.js:57
Functionput
* 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
MethodreadChunk
()
src/js/classes/Streamer.js:491
Methodrender
({ videoData, connectionStatus, downloader, })
src/js/web-components/video-card/VideoCard.js:40
FunctionrepresentationElementToObject
(representationElement)
src/js/classes/ParserMPD.js:130
MethodresolvePlayIntent
()
src/js/web-components/video-player/VideoPlayer.js:375
MethodsampleVideoQuality
* Check the video playback quality metrics provided by Video Playback Quality API * and store the current numbers.
src/js/classes/Streamer.js:674
MethodseekHandler
(details)
src/js/web-components/video-player/VideoPlayer.js:273
MethodsetNewToggleState
* We override default toggling logic with custom implementation.
src/js/web-components/offline-toggle-button/OfflineToggleButton.js:74
MethodsetOpt
* 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
MethodsetPipButton
()
src/js/web-components/video-player/VideoPlayer.js:414
Methodsetting
()
src/js/web-components/toggle-button/ToggleButton.js:54
MethodstartVideoQualitySampling
* Starts video quality sampling using the Video Playback Quality API. * * @returns {void}
src/js/classes/Streamer.js:652
Methodstate
* Reflected DOM Attributes. * * @returns {string} Components state string.
src/js/web-components/video-download/VideoDownloader.js:64
Methodstatus
* Returns the connection status, optionally overriden by the * offline status being forced. * * @returns {string} Connection status.
src/js/classes/ConnectionStatus.js:50
← previousnext →101–200 of 209, ranked by callers