

💡 Learn more about the single threaded architecture of node here Therefore if we have to download 10 files each 1 gigabyte in size and each requiring about 3 mins to download then with a single process we will have to wait for 10 x 3 = 30 minutes for the task to finish. It can only execute one process at a time. You see Node.js in its core is a single-threaded system. However, if you have to download multiple large files things start to get complicated. In this next part, we will dive deep into some of the advanced concepts.

The method launch(options) is just a slightly changed puppeteer launch function to start puppeteer in headful mode with this extension.Const browser = await puppeteer. videoConstraints: įor a detailed documentation of the mimeType, audioBitsPerSecond, videoBitsPerSecond, bitsPerSecond, frameSize properties have a look at the HTML5 MediaRecorder Options and for the videoConstraints and audioConstraints properties have a look at the MediaTrackConstraints. If this is specified along with one or the other of the above properties, this will be used for the one that isn't specified.įrameSize?: number // The number of milliseconds to record into each packet. This can be specified instead of the above two properties.

VideoBitsPerSecond?: number // The chosen bitrate for the video component of the media.īitsPerSecond?: number // The chosen bitrate for the audio and video components of the media. "audio/webm" or "video/webm"ĪudioBitsPerSecond?: number // The chosen bitrate for the audio component of the media. MimeType?: string // optional mime type of the stream, e.g. Video: boolean // whether or not to enable video Audio: boolean // whether or not to enable audio
