Posts: 2
Joined: Apr 2019
Reputation:
0
2019-04-07, 12:23
(This post was last modified: 2019-04-07, 13:20 by Klojum.
Edit Reason: No need for cries for help
)
My Code:
# Create a playable item with a path to play.
play_item = xbmcgui.ListItem(path=path)
# Pass the item to the Kodi player.
xbmcplugin.setResolvedUrl(_handle, True, listitem=play_item)
here the path is a local path ,I tryed with special://, plugin://, file:// ...
But it's not working.
How can i solve the problem?
Posts: 296
Joined: Nov 2014
Reputation:
10
Have you considered just using the path to the file?
Posts: 83
Joined: Oct 2016
Reputation:
7
The only trip up that I can think of is that you can't use UNC paths. you need to rewrite it as smb://server/path/to/file. Otherwise just give it the path, whether /linux/path/to/file or C:\\path\\to\\file
Developer for
Shoko and
Nakamori. Long time user of Kodi, before it was even called Kodi. My XBOX died long ago, but Windows is still just as broken and necessary. I obviously watch anime, given my first comment. Video games, manga, music, you name it.
Posts: 83
Joined: Oct 2016
Reputation:
7
Normally, that would be a fair response. I'm saying this because I'm an add-on developer, and I've done this, and it worked. Rewriting it to smb:// only works if you have no password or it's "remembered" by the OS.
Developer for
Shoko and
Nakamori. Long time user of Kodi, before it was even called Kodi. My XBOX died long ago, but Windows is still just as broken and necessary. I obviously watch anime, given my first comment. Video games, manga, music, you name it.