The IPFS node within the browser.
any
The IPFS node.
Error | null
The error (if any) thrown during IPFS initialization.
(bootstrap: string[]) => IPFSContextType
Create a new IPFS node. The IPFS context must be unique.
() => IPFSContextType
Return the IPFS node.
(content?: IPFSContent) => IPFSContentState
Fetches an IPFS hash, returning a generated object URL for the data.
string | undefined
The object URL of the content being fetched by IPFS.
boolean
Boolean indicating whether the content is still being fetched.
() => IPFSPeersState
Fetch the current peers connected to the local IPFS node.
Array<any>
The currently connected peers.
boolean
Boolean indicating whether the peers are currently being queried.
(hash?: string) => IPFSStreamController
IPFSStreamState
React.Dispatch<React.SetStateAction<number>>
Set the HLS playback quality.
React.RefObject<HTMLVideoElement>
The reference to be passed to the <video />
element.
number
The current playback quality.
Record<number, number>
The available playback qualities.