After numerous tests, I still haven't completely solved it, but I'm at a good point.
I have gotten to the point that I am using a batch file for starting mcplayclose only I have this problem with the names of the files to start:
WORKING:
c:\MCCLOSE\mcplayclose.exe "c:\MCCLOSE\3 Days To Kill.mkv" 1 fullscreen
DON'T WORKING:
c:\MCCLOSE\mcplayclose.exe "c:\MCCLOSE\3 Days To Kill.mkv (2014)" 1 fullscreen
In short, filenames with parentheses do not start ...
With MC27.EXE this problem is not there ...
This is debugging when it doesn't work (since I added (1) to the filename for testing)
27/12/2020 11:14:29 mcIP=127.0.0.1
27/12/2020 11:14:29 mcPort=52199
27/12/2020 11:14:29 mcUserName=xxxx
27/12/2020 11:14:29 mcPassword=xxxx
27/12/2020 11:14:29 mcAccessKey=
27/12/2020 11:14:29 mcLoadDelay=5000
27/12/2020 11:14:29 mcVersion=27
Arguments:
c:\MCCLOSE\3 Days To Kill(1).mkv
1
fullscreen
27/12/2020 11:14:31 : Waiting for MC to open
27/12/2020 11:14:31 : MC opened
27/12/2020 11:14:36 : /PlayReplace c:\MCCLOSE\3 Days To Kill(1).mkv|Zone=0&ZoneType=Index
27/12/2020 11:14:36 : Playback - PLAYING
27/12/2020 11:15:07 : Set zone to: 1
27/12/2020 11:15:07 : Turned repeat off
27/12/2020 11:15:09 : Waiting for MC server to load
27/12/2020 11:15:09 : Waiting for MC server to load
27/12/2020 11:15:09 : Connected to MC server
27/12/2020 11:15:09 : Token:
27/12/2020 11:15:09 :
http://127.0.0.1:52199/MCWS/v1/Playback/Info?Zone=0&ZoneType=Index&Token=27/12/2020 11:15:09 : <Item Name="ZoneID">0</Item>
27/12/2020 11:15:09 : <Item Name="State">0</Item>
27/12/2020 11:15:09 : xmlFieldNum: 1
27/12/2020 11:15:09 : Now monitoring playback state: Playing
27/12/2020 11:15:10 : Playback - STOPPED
27/12/2020 11:15:11 : MC closed
This is the debugging of when it works (I renamed the file and I removed (1))
27/12/2020 11:17:58 mcIP=127.0.0.1
27/12/2020 11:17:58 mcPort=52199
27/12/2020 11:17:58 mcUserName=xxx
27/12/2020 11:17:58 mcPassword=xxxx
27/12/2020 11:17:58 mcAccessKey=
27/12/2020 11:17:58 mcLoadDelay=5000
27/12/2020 11:17:58 mcVersion=27
Arguments:
c:\MCCLOSE\3 Days To Kill.mkv
1
fullscreen
27/12/2020 11:17:59 : Waiting for MC to open
27/12/2020 11:17:59 : MC opened
27/12/2020 11:18:04 : /PlayReplace c:\MCCLOSE\3 Days To Kill.mkv|Zone=0&ZoneType=Index
27/12/2020 11:18:04 : Playback - PLAYING
27/12/2020 11:18:04 : Set zone to: 1
27/12/2020 11:18:04 : Turned repeat off
27/12/2020 11:18:06 : Waiting for MC server to load
27/12/2020 11:18:07 : Waiting for MC server to load
27/12/2020 11:18:07 : Connected to MC server
27/12/2020 11:18:07 : Token:
27/12/2020 11:18:07 :
http://127.0.0.1:52199/MCWS/v1/Playback/Info?Zone=0&ZoneType=Index&Token=27/12/2020 11:18:07 : <Item Name="ZoneID">0</Item>
27/12/2020 11:18:07 : <Item Name="State">2</Item>
27/12/2020 11:18:07 : xmlFieldNum: 1
27/12/2020 11:18:07 : Now monitoring playback state: Playing
27/12/2020 11:18:42 : Playback - STOPPED
27/12/2020 11:18:43 : MC closed