Thread Rating:
  • 0 Vote(s) - 0 Average
Playing videos shared via SMB
#1
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:[email protected]/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
Reply
#2
Hello deanbennett. Did you bind in the video source on both Kodi's and can you srart the Videos on both kodis browsing the Files over the Video Plugin? So you can open this file by using the following Json command:
//Play a single video from file

http://192.168.15.117/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"Media/Big_Buck_Bunny_1080p.mov"}}}

Cange the IP/Port depending on witch Player you 'll like to play the movie.
Untested, but theoretically working..
Greez kangoroo
Reply
#3
Thanks Kangoroo,

I didn't bind any sources within Kodi itself as I wanted to have a zero config approach to this, I wanted to achieve a Cast to Device kind of experience. However I'll definitely try what you've suggested as it'll logically help prove that the videos are playable for both Kodi's. I'll also turn on the debugging to see if that gives any clues.

Thanks
Dean
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Playing videos shared via SMB00