Issue Description:
In our application we need to turn on replay mode, but it doesn’t work correct if application were launched after the game launch. We use simple code constructions for implementation:
let streamSettings = {
“video”: {
“auto_detect”: true,
“sub_folder_name”: ‘video’,
“fps”: this.videoFps,
“width”: this.videoWidth,
“height”: this.videoHeight,
“auto_calc_kbps”: true,
“buffer_length”: 18000,
“max_kbps”: 20000,
‘frame_interval’: 1,
“test_drop_frames_interval”: 1,
“notify_dropped_frames_ratio”: 2,
“max_file_size_bytes”: 1000000000,
“include_full_size_video”: true,
“override_overwolf_setting”: true,
“disable_when_sht_not_supported”: false,
},
“gif_as_video”: true,
“max_quota_gb”: 10,};console.log(
Initializing stream settings: ${JSON.stringify(streamSettings)}
);overwolf.media.replays.turnOn({
“settings”: streamSettings,
“highlights”: {
“enable” : false,
“requireHighlights” : “kill”
}
}, (res) =>{console.log(
turnOn callback: ${JSON.stringify(res)}
);
if (!res.success && res.error != “Not in a game.”) {console.log(
Error when trying to Turn on capturing: ${JSON.stringify(res, counter)}
);
this.enableCapture(counter+1);}
return;
});
Usualy this error appears if we trying to run application when game is already started, but according to users’ feedback it can happen even if plugin was launched first. This issue causes a lot of unpredictable errors, bc sometimes it can starts replay mode just after a game event and captue it correctly, but often this case means no correct replays will be recorded.
Maybe it depends on pc perfomance, but we find this error quite important in any case.
Steps to reproduce:
- Launch game
- Launch plugin
Impact for my app: critical
Do you currently have a workaround? No
10.08.2020 12:06 - incorrect start (I closed the game in 15 seconds but in a correct case turning on takes 4 second)
10.08.2020 12:08 - correct start
Log.zip (133.7 KB)