Steps to reproduce:
Prerequisite: having 2 windows in the app
- In main window, turn on capturing
These are the settings I used, whereas enabledHighlightFeatures is an Array of feature names, e.g. [‘kill’, ‘death’]:
const settings: ReplaySetting = {
settings : {
video: {} as StreamVideoOptions
} as StreamParams,
highlights: {
enable : true,
requiredHighlights: enabledHighlightFeatures
}
}
this.$overwolf.media.replays.turnOn(settings, console.log)
- once it’s turned on, try to get the state in both the Main window and the second window:
overwolf.media.replays.getState(console.log)
Expected result: get the correct state for isOn
Actual result: within the main window (the one that turned capturing on) the state is correct, in the other window it remains false
Impact for my app: [mid]
It’s not breaking anything (anymore after figuring it out), but it means not being able to rely on the result of the getState call, which might produce hard to detect bugs for other developers too.