docs: split RecordVideo object into dir and size options in java (#5389)
This commit is contained in:
parent
e2013b29e3
commit
3695dab1d5
|
|
@ -370,12 +370,12 @@ Optional setting to control whether to omit request content from the HAR. Defaul
|
||||||
Path on the filesystem to write the HAR file to.
|
Path on the filesystem to write the HAR file to.
|
||||||
|
|
||||||
## context-option-recordvideo
|
## context-option-recordvideo
|
||||||
* langs: java, js
|
* langs: js
|
||||||
- `recordVideo` <[Object]>
|
- `recordVideo` <[Object]>
|
||||||
- `dir` <[path]> Path to the directory to put videos into.
|
- `dir` <[path]> Path to the directory to put videos into.
|
||||||
- `size` <[Object]> Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport`.
|
- `size` <[Object]> Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport`
|
||||||
If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of each page will be
|
scaled down to fit into 800x800. If `viewport` is not configured explicitly the video size defaults to 800x450.
|
||||||
scaled down if necessary to fit the specified size.
|
Actual picture of each page will be scaled down if necessary to fit the specified size.
|
||||||
- `width` <[int]> Video frame width.
|
- `width` <[int]> Video frame width.
|
||||||
- `height` <[int]> Video frame height.
|
- `height` <[int]> Video frame height.
|
||||||
|
|
||||||
|
|
@ -383,20 +383,24 @@ Enables video recording for all pages into `recordVideo.dir` directory. If not s
|
||||||
sure to await [`method: BrowserContext.close`] for videos to be saved.
|
sure to await [`method: BrowserContext.close`] for videos to be saved.
|
||||||
|
|
||||||
## python-context-option-recordvideo-dir
|
## python-context-option-recordvideo-dir
|
||||||
* langs: python
|
* langs: csharp, java, python
|
||||||
- `record_video_dir` <[path]>
|
- alias-python: record_video_dir
|
||||||
|
- `recordVideoDir` <[path]>
|
||||||
|
|
||||||
Path to the directory to put videos into.
|
Path to the directory to put videos into.
|
||||||
|
|
||||||
## python-context-option-recordvideo-size
|
## python-context-option-recordvideo-size
|
||||||
* langs: python
|
* langs: csharp, java, python
|
||||||
- `record_video_size` <[Object]>
|
- alias-python: record_video_size
|
||||||
If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of each page will be
|
- `recordVideoSize` <[Object]>
|
||||||
|
If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of each page will be
|
||||||
scaled down if necessary to fit the specified size.
|
scaled down if necessary to fit the specified size.
|
||||||
- `width` <[int]> Video frame width.
|
- `width` <[int]> Video frame width.
|
||||||
- `height` <[int]> Video frame height.
|
- `height` <[int]> Video frame height.
|
||||||
|
|
||||||
Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport`.
|
Dimensions of the recorded videos. If not specified the size will be equal to `viewport`
|
||||||
|
scaled down to fit into 800x800. If `viewport` is not configured explicitly the video size defaults to 800x450.
|
||||||
|
Actual picture of each page will be scaled down if necessary to fit the specified size.
|
||||||
|
|
||||||
## context-option-proxy
|
## context-option-proxy
|
||||||
- `proxy` <[Object]>
|
- `proxy` <[Object]>
|
||||||
|
|
|
||||||
18
types/types.d.ts
vendored
18
types/types.d.ts
vendored
|
|
@ -6520,9 +6520,9 @@ export interface BrowserType<Browser> {
|
||||||
dir: string;
|
dir: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport`. If `viewport` is not
|
* Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport` scaled down to fit
|
||||||
* configured explicitly the video size defaults to 1280x720. Actual picture of each page will be scaled down if necessary
|
* into 800x800. If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of each page
|
||||||
* to fit the specified size.
|
* will be scaled down if necessary to fit the specified size.
|
||||||
*/
|
*/
|
||||||
size?: {
|
size?: {
|
||||||
/**
|
/**
|
||||||
|
|
@ -7454,9 +7454,9 @@ export interface Browser extends EventEmitter {
|
||||||
dir: string;
|
dir: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport`. If `viewport` is not
|
* Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport` scaled down to fit
|
||||||
* configured explicitly the video size defaults to 1280x720. Actual picture of each page will be scaled down if necessary
|
* into 800x800. If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of each page
|
||||||
* to fit the specified size.
|
* will be scaled down if necessary to fit the specified size.
|
||||||
*/
|
*/
|
||||||
size?: {
|
size?: {
|
||||||
/**
|
/**
|
||||||
|
|
@ -9535,9 +9535,9 @@ export interface BrowserContextOptions {
|
||||||
dir: string;
|
dir: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport`. If `viewport` is not
|
* Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport` scaled down to fit
|
||||||
* configured explicitly the video size defaults to 1280x720. Actual picture of each page will be scaled down if necessary
|
* into 800x800. If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of each page
|
||||||
* to fit the specified size.
|
* will be scaled down if necessary to fit the specified size.
|
||||||
*/
|
*/
|
||||||
size?: {
|
size?: {
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue