Skip to content

Commit c2c7ca4

Browse files
moar
1 parent 04776ac commit c2c7ca4

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

lib/utils/mjpeg.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ const CONTENT_LENGTH_RE = /Content-Length:\s*(\d+)/i;
1414
/**
1515
* Extracts individual JPEG frames out of a multipart MJPEG-over-HTTP byte stream by
1616
* scanning for JPEG start/end-of-image markers and the multipart `Content-Length` header.
17-
*
18-
* `@appium/support`'s `mjpeg` helper (which used to provide this via the external
19-
* `mjpeg-consumer` package) is deprecated and slated for removal, so this driver
20-
* implements the parsing on its own.
2117
*/
2218
class MjpegFrameParser extends Transform {
2319
private buffer: Buffer | null = null;
@@ -113,9 +109,6 @@ const noop = () => {};
113109
/**
114110
* Connects to an MJPEG-over-HTTP stream and keeps track of the last JPEG frame received,
115111
* so that it can be used as a cheap, low-latency screenshot source.
116-
*
117-
* This is vendored from `@appium/support`'s deprecated `mjpeg.MJpegStream`, which is
118-
* slated for removal ("Consumers are expected to implement MJpegStream class on their side").
119112
*/
120113
export class MJpegStream extends Writable {
121114
readonly errorHandler: (err: Error) => void;

0 commit comments

Comments
 (0)