skip-video
Makes the video skip to its end or fast forwards it by setting the currentTime attribute of the video object.
Parameters
Mandatory
|
Name |
Description |
Mandatory |
|---|---|---|
|
|
CSS or XPath selector to the |
Yes |
|
|
XPath selector to know when to trigger the skipping logic. |
Yes |
Optional parameters
|
Name |
Description |
Default |
|---|---|---|
|
|
Time to skip to. Zero/negative skips to end ( |
-0.1 |
|
|
Maximum retry attempts when video is not fully loaded. |
10 |
|
|
Interval in ms between retry attempts. |
10 |
|
|
Delay snippet until given state is reached (loading, interactive, complete, load, or event name). |
Disabled |
|
|
Disable the snippet after skipping once. |
false |
|
|
Pause snippet when video is near its end (< 0.5s remaining). |
false |
|
|
Start the skipping from this time position. |
0 |
|
|
Mutes the video during skipping. |
true |
Filter examples
|
Filter |
Result |
|---|---|
|
|
Skips video to end when the div has class |
|
|
Skips 10 seconds, only once. |
|
|
Waits for page load and stops when video is near its end. |