I hope someone can help me. I want to support DeoVR in HandyControl so people can play VR videos.
https://discuss.eroscripts.com/t/handycontrol/94?u=lucifie
I have converted the C# remote control example to VB.NET and was able to send and receive data.
My problems:
1) When I connect I get data from DeoVR once every second.
Now I send a single command and this is executed.
The connection stays open and DeoVR continues to send me data each second with the new values.
It stays open as long as I wait. I just sending the ping every second.
Now if I send another command then the returned values show still the old settings and after 3-4 seconds I get an error that says that the host closed the connection.
I have to reconnect for every single command. Somehow DeoVR closes the incomming connection after I have sent the first command. The second command is ignored and shuts down the connection.
This only happens in VB.NET
The JSON strings in both apps look the same. I cannot find the reason for this behaviour.
C# DeoVR - Send: {"path":null,"duration":null,"currentTime":null,"playbackSpeed":null,"playerState":0}
VB DeoVR - Send: {"path":null,"duration":null,"currentTime":null,"playbackSpeed":null,"playerState":0}
C# DeoVR - Send: {"path":null,"duration":null,"currentTime":null,"playbackSpeed":0.3,"playerState":null}
VB DeoVR - Send: {"path":null,"duration":null,"currentTime":null,"playbackSpeed":0.3,"playerState":null}
2) If I send a command with multiple values like a new video path and playbackSpeed (0.3) then the playbackspeed is ignored in DeoVR. The video plays the video at 1.0 but the JSON respond from DeoVR shows my defined speed (0.3).
3) If I open DeoVR and send a new path command nothing happens. I always have to manually select and start a video in the app first. Then when the video is playing I can send a command to switch the video.