puppeteer-stream icon indicating copy to clipboard operation
puppeteer-stream copied to clipboard

multiple tabs

Open simllll opened this issue 2 years ago • 2 comments

Thanks for this amazing thing, I'm using this quite heavily to stream our dashbaords to chromecasts :) I'm looking into performance optimizations right now, and tried to use one browser instance with multiple tabs instead of a single browser instance for each stream. Unfortunately this doesn't seem to work correctly, ffmpeg errors with weird errors like " Stream map '0:a' matches no streams."

Is it possible to use this plugins with multiple tabs? If so, anything I'm missing here or could try to get it running?

Thanks Simon

simllll avatar Mar 08 '22 13:03 simllll

@Flam3rboy anything I can do to get this issue solved? :) Any ideas what could be the issue?

simllll avatar May 02 '22 20:05 simllll

I'll later look into it 👍

SamuelScheit avatar May 03 '22 14:05 SamuelScheit

@simllll Did you manage to record multiple browser instances at the same time? I've made an endpoint for recording a page, if I call this endpoint 2 times, only the first call reproduces a valid webm file, the file for the second call is 0 kb

TofanStefan avatar Sep 26 '22 05:09 TofanStefan

Yeah, the issue is quite easy to fix... Check out https://github.com/Flam3rboy/puppeteer-stream/pull/55

simllll avatar Sep 26 '22 06:09 simllll

@simllll Thanks alot! I've ran into a problem... It says "Property '_getTargetInfo' does not exist on type 'Target'". I tried installing puppeteer 15 and I still get the same error

TofanStefan avatar Sep 26 '22 17:09 TofanStefan