Kodi Community Forum
Background music? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Background music? (/showthread.php?tid=124998)



Background music? - Tight_wad - 2012-03-08

I have never done anything with any music, so not sure if this is even possible. Is there a way to have background music playing when I start XBMC and while we are looking for movies to play, and then when I hit play for a movie, have it fade out?


- thumbinollie - 2012-03-08

There is an option to have XBMC start a playlist automatically when it opens.


- htpc guy - 2012-03-08

Open the files for the skin you are using. You are looking for your xbmc addon directory\skin file\sounds\sound.xml

here is the sound.xml from Nox
Code:
<sounds>
  <actions>
    <action>
      <name>left</name>
      <file>cursor.wav</file>
    </action>
    <action>
      <name>right</name>
      <file>cursor.wav</file>
    </action>
    <action>
      <name>up</name>
      <file>cursor.wav</file>
    </action>
    <action>
      <name>down</name>
      <file>cursor.wav</file>
    </action>
    <action>
      <name>select</name>
      <file>click.wav</file>
    </action>
    <action>
      <name>parentdir</name>
      <file>back.wav</file>
    </action>
    <action>
      <name>previousmenu</name>
      <file>back.wav</file>
    </action>
    <action>
      <name>screenshot</name>
      <file>shutter.wav</file>
    </action>
  </actions>

  <windows>
    <window>
      <name>infodialog</name>
      <activate>notify.wav</activate>
      <deactivate>out.wav</deactivate>
    </window>
    <window>
      <name>startup</name>
      <activate></activate>
    </window>
  </windows>
</sounds>

At the end you will see:
Code:
<window>
      <name>startup</name>
      <activate></activate>
    </window>

Between the <activate></activate> tags you will put the name.extension of the file you want to play on startup.

Then put that sound file in the sound folder.

This will play the sound every time xbmc starts. However it will only play it once.

You may want to look into the tv tunes addon. It will play the opening track of the tv show you are browsing when you are in the tv library.


- Tight_wad - 2012-03-09

Thanks for the ideas, but none will really get me to what I would like. Thanks anyway.


- jhsrennie - 2012-03-09

If you create a Python script called autoexec.py and put it in your userdata directory XBMC will execute this script when it starts. You can use this script to play any music of your choice, and indeed to do anything of your choice in XBMC.

JR


RE: Background music? - claimui - 2012-05-20

This might be what you're looking for: http://forum.xbmc.org/showthread.php?tid=36859 (it doesn't fade out though)