Skip to content

Commit 4b76b28

Browse files
author
arch
committed
add support for MultiFunPlayer
1 parent 20f2570 commit 4b76b28

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

Assets/inject.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@echo off
22
for /f "TOKENS=1" %%a in ('wmic PROCESS where "Name='Virtual Desktop.exe'" get ProcessID ^| findstr [0-9]') do set VirtualDesktopPID=%%a
33
echo Virtual Desktop PID: %VirtualDesktopPID%
4-
for /R %%f in (VirtualDesktopTimecodeServer_*.dll) do set DllFileName=%%f
4+
for %%f in (VirtualDesktopTimecodeServer_*.dll) do set DllFileName=%%f
55
echo Virtual Desktop Timecode Extension: %DllFileName%
66
cd C:\Program Files (x86)\Snoop
77
Snoop.InjectorLauncher.x64.exe --targetPID %VirtualDesktopPID% --assembly "%DllFileName%" --className VirtualDesktopTimecodeServer.TimecodeDriver --methodName StartTimecodeServer --settingsFile ""
8-
timeout 5
8+
timeout 6

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ Timecode Server for [Virtual Desktop Wired Version](https://www.vrdesktop.net).
2121
2. Use `./inject_vx.x.x.bat` to inject the Timecode Server Extension to Virtual Desktop.
2222
3. Open an Video with Virtual Desktop that contains an Funscript in the same directory.
2323
4. Connect Your Funscript Player and select the Whirligig API.
24+
25+
## MultiFunPlayer
26+
27+
With this Timecode Server Extension you can use Virtual Desktop with [MultiFunPlayer](https://github.com/Yoooi0/MultiFunPlayer) by selecting the Whirligig video player. Due to an strict [process name check](https://github.com/Yoooi0/MultiFunPlayer/blob/1.26.1/Source/MultiFunPlayer/MediaSource/ViewModels/WhirligigMediaSourceViewModel.cs#L39-L41) for an local host IP (`127.0.0.1`), you have to use the IP of your NIC to bypass this check in MultiFunPlayer.

VirtualDesktopTimecodeServer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private async void HandleConnection(IAsyncResult result)
7575
if (_videoPath != lastVideoFile)
7676
{
7777
lastVideoFile = _videoPath;
78-
byte[] videoFile = Encoding.Default.GetBytes("C" + _videoPath + "\n");
78+
byte[] videoFile = Encoding.Default.GetBytes("C " + _videoPath + "\n");
7979
ns.Write(videoFile, 0, videoFile.Length);
8080
}
8181

@@ -94,7 +94,7 @@ private async void HandleConnection(IAsyncResult result)
9494
if (lastTimecode != _videoPositionInSecondsString)
9595
{
9696
lastTimecode = _videoPositionInSecondsString;
97-
byte[] timecode = Encoding.Default.GetBytes("P" + _videoPositionInSecondsString + "\n");
97+
byte[] timecode = Encoding.Default.GetBytes("P " + _videoPositionInSecondsString + "\n");
9898
ns.Write(timecode, 0, timecode.Length);
9999
}
100100

0 commit comments

Comments
 (0)