2018-06-27, 09:58
I came across 2 problems by trying to implement this.
1:
when switching to another item , if theme exists or not, player seems pausing,
i get it solved to make this in custom_stop_soundtrack.xml
, wether it isnt supposed to, but its working for me
2nd.
Music player try always to start, even when there isnt a file.
i tried some thing in the custom_start xml , but im not able to solve prevent start when (empty/equal/contains)
(he try to play theme, and i saw that total duration isnt " cleared" from last item wich had a theme)
my files
custom START
custom RID
custum STOP
Custom Fullscreen Music
Dialog Busy
1:
when switching to another item , if theme exists or not, player seems pausing,
i get it solved to make this in custom_stop_soundtrack.xml
, wether it isnt supposed to, but its working for me
xml:
<!--
<onload condition="Player.Playing">Pause</onload>
-->
<onload>Stop</onload>
2nd.
Music player try always to start, even when there isnt a file.
i tried some thing in the custom_start xml , but im not able to solve prevent start when (empty/equal/contains)
(he try to play theme, and i saw that total duration isnt " cleared" from last item wich had a theme)
my files
custom START
xml:
<window type="dialog" id="1355">
<onload>Stop</onload>
<onload condition="String.IsEmpty(Window(home).Property(PlayingOST)) + !String.Contains(ListItem.Path,http)">PlayMedia($ESCINFO[ListItem.Path,,theme.mp3])</onload>
<onload>SetProperty(OST,$INFO[ListItem.Path],home)</onload>
<onload>SetProperty(PlayingOST,True,home)</onload>
<visible>System.IdleTime(2) + [!String.IsEqual(ListItem.Path,Window(home).Property(OST)) | !Player.Playing]</visible>
<visible>!ListItem.IsCollection + !String.Contains(ListItem.Path,thumb + !String.Contains(ListItem.Path,image + !String.Contains(ListItem.Path,plugin) + !String.Contains(ListItem.Path,videodb</visible>
<visible>Container.Content(movies) | [Container.Content(tvshows) + !Player.Playing] | [Container.Content(seasons) + !Player.Playing]</visible>
<visible>!Window.IsActive(movieinformation)</visible>
<visible>Window.IsActive(videos)</visible>
<visible>!Player.HasVideo</visible>
<visible>Skin.HasSetting(LibraryOSTthemes)</visible>
<controls>
</controls>
</window>
custom RID
xml:<window type="dialog" id="1305">
<onload>Stop</onload>
<onload>ClearProperty(PlayingOST,Home)</onload>
<visible>String.Contains(Player.Filenameandpath,theme.mp3) + [!Window.IsActive(videos) | String.IsEmpty(ListItem.Path) | ListItem.IsCollection]</visible>
<visible>Skin.HasSetting(LibraryOSTthemes)</visible>
<visible>!Player.HasVideo</visible>
<controls>
</controls>
</window>
custum STOP
xml:
<window type="dialog" id="1255">
<!--
<onload condition="Player.Playing">Pause</onload>
-->
<onload>Stop</onload>
<onload>ClearProperty(PlayingOST,Home)</onload>
<visible>!String.IsEqual(ListItem.Path,Window(home).Property(OST))</visible>
<visible>[Container.Content(movies) | Container.Content(tvshows)] + !Player.HasVideo </visible>
<visible>!Window.IsActive(movieinformation)</visible>
<visible>Skin.HasSetting(LibraryOSTthemes)</visible>
<controls>
</controls>
</window>
Custom Fullscreen Music
xml:
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1118">
<allowoverlay>no</allowoverlay>
<onload condition="!Window.IsActive(visualisation) + !Window.IsActive(videos)">FullScreen</onload>
<visible>Player.HasAudio + Skin.HasSetting(FullscreenMusic) + String.IsEmpty(Window(10025).Property(PlayingBackgroundMedia))</visible>
<controls></controls>
</window>
Dialog Busy
any help would be great.mxl:
<onload condition="[String.Contains(Player.Filenameandpath,theme.mp3) | !String.IsEmpty(Window(home).Property(PlayingOST))] + Skin.HasSetting(LibraryOSTthemes)">Dialog.Close(all,true)</onload>