devtools-protocol 0.0.1674729 → 0.0.1676105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24400,6 +24400,57 @@
24400
24400
  }
24401
24401
  ]
24402
24402
  },
24403
+ {
24404
+ "name": "startScreenRecording",
24405
+ "description": "Starts screencast video recording.",
24406
+ "experimental": true,
24407
+ "parameters": [
24408
+ {
24409
+ "name": "audio",
24410
+ "optional": true,
24411
+ "type": "boolean"
24412
+ },
24413
+ {
24414
+ "name": "maxWidth",
24415
+ "description": "Maximum frame width in pixels.",
24416
+ "optional": true,
24417
+ "type": "integer"
24418
+ },
24419
+ {
24420
+ "name": "maxHeight",
24421
+ "description": "Maximum frame height in pixels.",
24422
+ "optional": true,
24423
+ "type": "integer"
24424
+ },
24425
+ {
24426
+ "name": "frameRate",
24427
+ "description": "Maximum frame rate in frames per second.",
24428
+ "optional": true,
24429
+ "type": "integer"
24430
+ }
24431
+ ],
24432
+ "returns": [
24433
+ {
24434
+ "name": "stream",
24435
+ "description": "A handle of the stream that holds resulting screencast data.",
24436
+ "experimental": true,
24437
+ "$ref": "IO.StreamHandle"
24438
+ }
24439
+ ]
24440
+ },
24441
+ {
24442
+ "name": "stopScreenRecording",
24443
+ "description": "Stops screencast video recording.",
24444
+ "experimental": true,
24445
+ "returns": [
24446
+ {
24447
+ "name": "stream",
24448
+ "description": "A handle of the stream that holds resulting screencast data.",
24449
+ "experimental": true,
24450
+ "$ref": "IO.StreamHandle"
24451
+ }
24452
+ ]
24453
+ },
24403
24454
  {
24404
24455
  "name": "stopLoading",
24405
24456
  "description": "Force the page stop all navigations and pending resource fetches."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1674729",
3
+ "version": "0.0.1676105",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1175,6 +1175,26 @@ domain Page
1175
1175
  # Send every n-th frame.
1176
1176
  optional integer everyNthFrame
1177
1177
 
1178
+ # Starts screencast video recording.
1179
+ experimental command startScreenRecording
1180
+ parameters
1181
+ optional boolean audio
1182
+ # Maximum frame width in pixels.
1183
+ optional integer maxWidth
1184
+ # Maximum frame height in pixels.
1185
+ optional integer maxHeight
1186
+ # Maximum frame rate in frames per second.
1187
+ optional integer frameRate
1188
+ returns
1189
+ # A handle of the stream that holds resulting screencast data.
1190
+ experimental IO.StreamHandle stream
1191
+
1192
+ # Stops screencast video recording.
1193
+ experimental command stopScreenRecording
1194
+ returns
1195
+ # A handle of the stream that holds resulting screencast data.
1196
+ experimental IO.StreamHandle stream
1197
+
1178
1198
  # Force the page stop all navigations and pending resource fetches.
1179
1199
  command stopLoading
1180
1200
 
@@ -5203,6 +5203,22 @@ export namespace ProtocolMapping {
5203
5203
  paramsType: [Protocol.Page.StartScreencastRequest?];
5204
5204
  returnType: void;
5205
5205
  };
5206
+ /**
5207
+ * Starts screencast video recording.
5208
+ * @experimental
5209
+ */
5210
+ 'Page.startScreenRecording': {
5211
+ paramsType: [Protocol.Page.StartScreenRecordingRequest?];
5212
+ returnType: Protocol.Page.StartScreenRecordingResponse;
5213
+ };
5214
+ /**
5215
+ * Stops screencast video recording.
5216
+ * @experimental
5217
+ */
5218
+ 'Page.stopScreenRecording': {
5219
+ paramsType: [];
5220
+ returnType: Protocol.Page.StopScreenRecordingResponse;
5221
+ };
5206
5222
  /**
5207
5223
  * Force the page stop all navigations and pending resource fetches.
5208
5224
  */
@@ -4057,6 +4057,18 @@ export namespace ProtocolProxyApi {
4057
4057
  */
4058
4058
  startScreencast(params: Protocol.Page.StartScreencastRequest): Promise<void>;
4059
4059
 
4060
+ /**
4061
+ * Starts screencast video recording.
4062
+ * @experimental
4063
+ */
4064
+ startScreenRecording(params: Protocol.Page.StartScreenRecordingRequest): Promise<Protocol.Page.StartScreenRecordingResponse>;
4065
+
4066
+ /**
4067
+ * Stops screencast video recording.
4068
+ * @experimental
4069
+ */
4070
+ stopScreenRecording(): Promise<Protocol.Page.StopScreenRecordingResponse>;
4071
+
4060
4072
  /**
4061
4073
  * Force the page stop all navigations and pending resource fetches.
4062
4074
  */
@@ -4331,6 +4331,18 @@ export namespace ProtocolTestsProxyApi {
4331
4331
  */
4332
4332
  startScreencast(params: Protocol.Page.StartScreencastRequest): Promise<{id: number, result: void, sessionId: string}>;
4333
4333
 
4334
+ /**
4335
+ * Starts screencast video recording.
4336
+ * @experimental
4337
+ */
4338
+ startScreenRecording(params: Protocol.Page.StartScreenRecordingRequest): Promise<{id: number, result: Protocol.Page.StartScreenRecordingResponse, sessionId: string}>;
4339
+
4340
+ /**
4341
+ * Stops screencast video recording.
4342
+ * @experimental
4343
+ */
4344
+ stopScreenRecording(): Promise<{id: number, result: Protocol.Page.StopScreenRecordingResponse, sessionId: string}>;
4345
+
4334
4346
  /**
4335
4347
  * Force the page stop all navigations and pending resource fetches.
4336
4348
  */
@@ -18166,6 +18166,38 @@ export namespace Protocol {
18166
18166
  everyNthFrame?: integer;
18167
18167
  }
18168
18168
 
18169
+ export interface StartScreenRecordingRequest {
18170
+ audio?: boolean;
18171
+ /**
18172
+ * Maximum frame width in pixels.
18173
+ */
18174
+ maxWidth?: integer;
18175
+ /**
18176
+ * Maximum frame height in pixels.
18177
+ */
18178
+ maxHeight?: integer;
18179
+ /**
18180
+ * Maximum frame rate in frames per second.
18181
+ */
18182
+ frameRate?: integer;
18183
+ }
18184
+
18185
+ export interface StartScreenRecordingResponse {
18186
+ /**
18187
+ * A handle of the stream that holds resulting screencast data.
18188
+ * @experimental
18189
+ */
18190
+ stream: IO.StreamHandle;
18191
+ }
18192
+
18193
+ export interface StopScreenRecordingResponse {
18194
+ /**
18195
+ * A handle of the stream that holds resulting screencast data.
18196
+ * @experimental
18197
+ */
18198
+ stream: IO.StreamHandle;
18199
+ }
18200
+
18169
18201
  export const enum SetWebLifecycleStateRequestState {
18170
18202
  Frozen = 'frozen',
18171
18203
  Active = 'active',