Skip to content

Commit

Permalink
Fix: p2p-media-loader-demo/tsconfig.node.json error (#441)
Browse files Browse the repository at this point in the history
* fix: p2p-media-loader-demo/tsconfig.node.json error

* fix: jsdoc
  • Loading branch information
DimaDemchenko authored Nov 18, 2024
1 parent f896c72 commit 2e1e703
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/p2p-media-loader-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,15 +379,19 @@ export type StreamConfig = {
* Optional function to validate a P2P segment before fully integrating it into the playback buffer.
* @param url URL of the segment to validate.
* @param byteRange Optional byte range of the segment.
* @param data: Downloaded segment data.
* @param data Downloaded segment data.
* @returns A promise that resolves with a boolean indicating if the segment is valid.
*
* @default
* ```typescript
* validateP2PSegment: undefined
* ```
*/
validateP2PSegment?: (url: string, byteRange: ByteRange | undefined, data: ArrayBuffer) => Promise<boolean>;
validateP2PSegment?: (
url: string,
byteRange: ByteRange | undefined,
data: ArrayBuffer,
) => Promise<boolean>;

/**
* Optional function to customize the setup of HTTP requests for segment downloads.
Expand Down
Empty file.

0 comments on commit 2e1e703

Please sign in to comment.