Hi,
I have two Kodi installs on my network, Kodi-A is hosted using OpenELEC on an RPi3 and Kodi-B is installed on my Windows Laptop.
I have movies shared from Kodi-A using the SMB shares which is fine and works very well.
I’m working on a project where I’d like to play a movie from the SMB share on both Kodi-A and Kodi-B depending on which I choose. What I’ve found is in order for me to play a movie on Kodi-B through the JSON-RPC call I have to specify the smb share with a username and password i.e. smb://username:password@kodi-a/movies/xxxxxxx which is perfectly understandable. However if I fire the same request at kodi-a it responds with success but doesn’t start the video. It turns out that if I remove the credentials the request fired at kodi-a then works.
I’m not quite sure why kodi-a doesn’t play the video with the username and password but does when I don’t supply it. Obviously I understand that it doesn’t need credentials as it’s the same host as the smb share however I’d simply expect it to ignore the credentials than not to launch the video at all.
Does anyone have any ideas of what be a universal way of ensuring the same request fires for both Kodi-A and Kodi-B?
Many Thanks
Dean