Add script offset / delay to Handy support. (#1573)

* Add script offset / delay to Handy support.

Further work on  #1376.

Offsets are added to the current video position, so a positive value leads to earlier motion.  (The most common setting.)

This is needed because most script times have a consistent delay when compared to the video. (Delay from the API calls to the server should be handled by the server offset calculation.)

* Rename scriptOffset to funscriptOffset
* Correct localisation keys

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
UnluckyChemical765
2021-08-25 18:50:02 -07:00
committed by GitHub
parent 50217f6318
commit 45a9aabdaf
14 changed files with 76 additions and 16 deletions

View File

@@ -54,7 +54,10 @@ export class ScenePlayerImpl extends React.Component<
this.state = {
scrubberPosition: 0,
config: this.makeJWPlayerConfig(props.scene),
interactiveClient: new Interactive(this.props.config?.handyKey || ""),
interactiveClient: new Interactive(
this.props.config?.handyKey || "",
this.props.config?.funscriptOffset || 0
),
};
// Default back to Direct Streaming