SamuelScheit / puppeteer-stream

A Library for puppeteer to retrieve audio and/or video streams
MIT License
333 stars 105 forks source link

Protocol Error Occurs When Retrieving Media Stream Using getStream() #158

Open oreoluwadnd opened 2 months ago

oreoluwadnd commented 2 months ago

I encountered a protocol error while attempting to retrieve a media stream using the getStream() function in my Puppeteer script. The error message indicates "Protocol error (Runtime.callFunctionOn): Promise was collected".

Code Snippet: const stream = await getStream(page, { video: true, audio: true });

Error Message: Protocol error (Runtime.callFunctionOn): Promise was collected

Steps to Reproduce: Launch Puppeteer with necessary configurations for media stream handling. Navigate to a page where the media stream is available. Attempt to retrieve the media stream using the getStream() function with { video: true, audio: true } options.

Expected Behavior: The getStream() function should successfully retrieve the media stream without any errors.

Actual Behavior: A protocol error occurs with the message "Protocol error (Runtime.callFunctionOn): Promise was collected".

oreoluwadnd commented 2 months ago

@SamuelScheit