2019-11-12, 20:24
Hi @sualfred
I like to build a music hub(custom window), where i want to avoid going in musicnav when click on folder items. ( which offers many other problems but thats another task)
My issue is that: if i like to start play a song using
RunScript(script.embuary.helper,action=playall,id=5121,method=fromhere)
as oncklick action it'll create a videoplaylist instead of a wished musicplaylist
KODI LOG : NOTICE: [ script.embuary.helper ] Video playlist has been filled. Clear existing music playlist
Do you think its possible to set the target as optional 'argument'/'type' there ?
And a Bonus Question :
did you know any way if a custom window (even better will be widget containers) can be 'handled' as an specific mediacontenttype window (e.g. targetWindow=music)
so that a custom window is able to have the corresponding contextmenu items and keymap actions available ,based on target/windowid ?
e.g. queue an item to musicplaylist - is just possible in mymusicnav.xml
I found this in kodi source but i have no idea what and if somewhat can be done script wise or if that even helps ...
I like to build a music hub(custom window), where i want to avoid going in musicnav when click on folder items. ( which offers many other problems but thats another task)
My issue is that: if i like to start play a song using
RunScript(script.embuary.helper,action=playall,id=5121,method=fromhere)
as oncklick action it'll create a videoplaylist instead of a wished musicplaylist
KODI LOG : NOTICE: [ script.embuary.helper ] Video playlist has been filled. Clear existing music playlist
Do you think its possible to set the target as optional 'argument'/'type' there ?
And a Bonus Question :
did you know any way if a custom window (even better will be widget containers) can be 'handled' as an specific mediacontenttype window (e.g. targetWindow=music)
so that a custom window is able to have the corresponding contextmenu items and keymap actions available ,based on target/windowid ?
e.g. queue an item to musicplaylist - is just possible in mymusicnav.xml
I found this in kodi source but i have no idea what and if somewhat can be done script wise or if that even helps ...
python:
if (targetWindow.empty())
iTargetWindow = CServiceBroker::GetGUI()->GetWindowManager().GetActiveWindow();
else
iTargetWindow = CWindowTranslator::TranslateWindow(targetWindow);