ScriptPlayer
ScriptPlayer copied to clipboard
Unreliable DeoVR remote control
ScriptPlayer and DeoVR are not playing well with each other, here are my findings:
- There is a third playerstate not in the docs, 2 = reached end of video? (should not really matter as SP only cares if the playerState is equal playing or not)
- ScriptPlayer doesn't seem to know when DeoVR has closed the TCP connection. I have seen ScriptPlayer kept sending 'ping' to DeoVR even though SP is no long receiving packets (i.e. new DeoVR packets no longer appear in the debug log)
- Empty packet from DeoVR means it is not in player mode, ScriptPlayer shall pause script playback but InterpretData() ignores empty packets therefore not updating ScriptPlayer play state.
- DeoVR seems quite sensitive with the ping packet and closes connection easily, more frequent ping shall be use to keep the connection alive.
- selecting video in ScriptPlayer would not cause DeoVR to load the corresponding video
- DeoVR can only process new json packet when it is in the video player mode (i.e. at times where json is sent from DeoVR), not sure if there is check in ScriptPlayer to wait for such state before sending commands.