Hi,
Im working on a new music plugin, but im stuck…
An example plugin:
<br />
from PMS import *<br />
PLUGIN_PREFIX = '/music/test'<br />
<br />
def Start():<br />
Plugin.AddPrefixHandler(PLUGIN_PREFIX, MainMenu, 'test', '', '')<br />
Plugin.AddViewGroup("Details", viewMode="InfoList", mediaType="items")<br />
<br />
def MainMenu():<br />
dir = MediaContainer()<br />
dir.Append(Function(TrackItem(PlaySong, title="Test Title"), songID="1234"))<br />
return dir<br />
<br />
def PlaySong(sender, songID):<br />
return Redirect("http://some_server/some_mp3_file")<br />
The above code gives an "Error while opening file".
But if i change the plugin prefix from "/music/test" to "/video/test" im able to open the stream (But from the video menu...).
Is this a bug, or am i doing something wrong?