skip-video
Makes the video skip to its end or fast forwards it with the given amount. It does it by setting the currentTime attribute of the video object.
Parameters
Name | Description | Mandatory | Default Value |
---|---|---|---|
| The CSS or the XPath selector to the | Yes | - |
| The XPath selector that will be used to know when to trigger the skipping logic. | Yes | - |
| Optional parameters to configure the snippet. Any number of the supported parameters from the table below can be added to this in any order. Separate the optional parameters with space as if they are different arguments to the filter. | No |
Name | Description | Default Value | Example Value |
---|---|---|---|
| Determines the time of the video to skip to. If the value is zero or negative, the snippet skips to the end of the video ( | -0.1 |
|
| If the video is not fully loaded by the time the xPath condition is met; there is a retry mechanism in the snippet. The snippet will try to skip the video once every | 10 |
|
| If the video is not fully loaded by the time the xPath condition is met; there is a retry mechanism in the snippet. The snippet will try to skip the video once every | 10 |
|
| Optional parameter that can be used to delay the running of the snippet until the given state is reached. Accepts: loading, interactive, complete, load or any event name. Pass empty string to disable. | Disabled (snippet runs immediately) |
|
| Used to disable the snippet after it has skipped the video once. | False |
|
| Used to pause the snippet when the video is already near its end. Video is considered near its end when the difference between the video duration and the current time is less than 0.5 seconds. | False |
|
| Used to pause the snippet when the video is already near its end. Video is considered near its end when the difference between the video duration and the current time is less than 0.5 seconds. | 0 |
|
| Mutes the video when the skipping logic is running. | True |
|
Filter examples
The following table lists examples that use the skip-video
snippet:
Filter | Result |
---|---|
| Finds the video player with |
| This filter will only skip 10 seconds of the video when the xpath condition first matches. |
| This filter will delay the running of the snippet until the page is fully loaded and it will pause the snippet once the video is close to its end. Any number of parameters can be added to customize the snippet. |
Last updated