More > JRiver Media Center 27 for Windows
Has anyone managed to get JRiver to work as an external player with Kodi?
marameox:
I am an old Kodi user and recently I have been using JRiver for his dsp and madvdr and I was able to do the digital correction of the room.
But I want to keep Kodi as an interface since to my taste it is more beautiful and functional.
With Kodi I can use all external players, such as Wmp, Vlc etc. but not JRiver.
When Kodi launches an external player, it waits for the player to finish its work and be closed to return to its Kodi interface.
This does not happen with JRiver since once started after 5/10 seconds it returns to the Kodi interface and JRiver continues to run the file in the background.
I have already manipulated the Kodi playercorefactory file several times but I can't solve.
I use to start JRiver via command line with mc27.exe
Can someone help me?
justsomeguy:
https://yabb.jriver.com/interact/index.php/topic,65984.0.html
I put this together years ago. I have an install of kodi still on my machine (although I don't use it) and did a quick test. I was able to get kodi to launch videos using MC as the player. Give it a shot it may work for you. There may be a better way of doing this now days that I'm not aware of though.
In the MCPlayCloseConfig.txt file make sure to to change mcVersion to 27. You'll maybe need to set other things in that file like username and password for your MC server (This is what you set in MC Tools>Options>Media Network).
Here is the contents of the playercorefactory.xml I used.
--- Code: ---<playercorefactory>
<players>
<player name="JRiverMC" type="ExternalPlayer" audio="false" video="true">
<filename>D:\MCPlayClose\MCPlayClose.exe</filename>
<args>"{1}" 3 fullscreen</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filetypes="*" filename="*.*" player="JRiverMC"/>
</rules>
</playercorefactory>
--- End code ---
The 3 in the <args> is the zone you want to use in MC. I don't remember why but for some reason I padded that number by 1, I think because MC uses 0 as the first zone and I was trying it make it more "user friendly" I guess. So in MC if you hover your mouse over the zone name you want to use it will popup a dialog showing that zones number. If it says zone index 2 then use 3 for the zone number.
marameox:
Thank you for the directions but I was unable to resolve.
If I use the normal procedure and start command line with mc27.exe the video starts normally (always with the problem that kodi returns after a few seconds in the foreground).
The video never starts with the mcplayclose.exe file.
I also tried directly from the command prompt and I tried all the zones: 0-1-2-3 but the video never starts and the debug file is the following:
(I put XXXX to hide my passwords)
27/12/2020 00:29:57 mcIP=127.0.0.1
27/12/2020 00:29:57 mcPort=52199
27/12/2020 00:29:57 mcUserName=XXXX
27/12/2020 00:29:57 mcPassword=XXXX
27/12/2020 00:29:57 mcAccessKey=
27/12/2020 00:29:57 mcLoadDelay=5000
27/12/2020 00:29:57 mcVersion=27
Arguments:
test.mp4
2
27/12/2020 00:29:58 : Waiting for MC to open
27/12/2020 00:29:58 : MC opened
27/12/2020 00:30:03 : /PlayReplace test.mp4|Zone=1&ZoneType=Index
27/12/2020 00:30:03 : Playback - PLAYING
27/12/2020 00:30:04 : Set zone to: 2
27/12/2020 00:30:04 : Turned repeat off
27/12/2020 00:30:04 : Waiting for MC server to load
27/12/2020 00:30:04 : Connected to MC server
27/12/2020 00:30:04 : Token: XXXX
27/12/2020 00:30:04 : http://127.0.0.1:52199/MCWS/v1/Playback/Info?Zone=1&ZoneType=Index&Token=XXXX
27/12/2020 00:30:04 : <Item Name="ZoneID">10000</Item>
27/12/2020 00:30:04 : <Item Name="ZoneName">[TV]TV SALA</Item>
27/12/2020 00:30:04 : <Item Name="State">0</Item>
27/12/2020 00:30:04 : xmlFieldNum: 2
27/12/2020 00:30:04 : Now monitoring playback state: Playing
27/12/2020 00:30:05 : Playback - STOPPED
27/12/2020 00:30:06 : MC closed
justsomeguy:
First thing I see in the log is no path to your test.mp4 file. MCPlayClose doesn't look for the file in its own directory, it simply passes the path you provide it on to MC.
Try:
mcplayclose.exe "D:\My Videos\test.mp4" 2
or whatever the actual path to your test video is.
Something else that could cause an issue I just realized from trying it just now. If you use ZoneSwitch in MC to force certain file types to play in specific zones it appears to ignore the zone specified by the command line. So you could possibly send it zone 2 in the command line but it may actually play in a different zone. This is a problem because MCPlayClose monitors the zone you give it for playback and if it's actually playing in a different zone then the playback will appear stopped and it will immediately close MC.
This seems like it might be a bug or unintended behavior in MC itself. If you pass MC a zone by command line it seems like it should take precedent over ZoneSwitch but it doesn't.
marameox:
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
Navigation
[0] Message Index
[#] Next page
Go to full version