Skip to content

Commit

Permalink
fix: jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaDemchenko committed Nov 18, 2024
1 parent 9665132 commit 4a04ad6
Showing 1 changed file 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

0 comments on commit 4a04ad6

Please sign in to comment.