Work in Progress - Background Music

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
v0idnull Offline
Junior Member
Posts: 13
Joined: Mar 2010
Reputation: 0
Post: #1
So I've seen several threads talk about having background music. I stumbled across them after using my friend's Wii and wishing that XBMC would have similar soft ambient music in the background.

the threads I saw all pointed to things like playlists at startup for specific themes, or other solutions that kick off a player but that won't restart when you're done playing with something.

So I've created a service plugin that can be configured with any audio media.

https://github.com/v0idnull/xbmc to install the install the repo and subsequently the plugin.

there are two major issues plaguing me right now.

1) this is incompatible with PseudoTV (no idea how fix)
2) navigation sounds, no matter how you configure XBMC don't seem to play when the music is playing unless you reset the navigation sound settings in the Appearance tab (no idea how to fix)
3) If you try to stop the music normally, it will restart again unless you disable the plugin

I've only tested on Frodo with the Xperience1080+ theme.

If you're looking for the soft ambient music that other media centers have, do what I did: search for ambient music from netlabels on archive.org. I've found a whole bunch and got exactly the kind of background music I was looking for. You can also search for "drone" ambience as well.

Of course, you're free to play whatever you want to play.

If anyone has any problems, please let me know.
find quote
Bstrdsmkr Offline
Posting Freak
Posts: 802
Joined: Oct 2010
Reputation: 17
Post: #2
I took a crack at this a while back at a user's requst: https://github.com/bstrdsmkr/service.bgmusic

hth
find quote
one1one Offline
Junior Member
Posts: 3
Joined: Dec 2013
Reputation: 0
Post: #3
I would be interested in the continual development of either of these im specifically looking for the issues you stated to be fixed, if possible to do it would be amazing Smile

Thanks.
find quote
DAlba Offline
Member
Posts: 68
Joined: Dec 2014
Reputation: 0
Post: #4
Does this plugin still work with 15.2?
find quote
apeg Offline
Fan
Posts: 350
Joined: Oct 2008
Reputation: 2
Post: #5
(2015-10-15 03:42)DAlba Wrote:  Does this plugin still work with 15.2?

+1 (ill try tonight when i have some time)
(This post was last modified: 2015-11-30 17:51 by apeg.)
find quote
apeg Offline
Fan
Posts: 350
Joined: Oct 2008
Reputation: 2
Post: #6
ya, no "dependencies not met" :-S on Bstrdsmkr release. Thanks anyhow Bstrdsmkr, likely a version issue seeing how his post is 2 years old.

v0idnull's version does work (helix) (will test in Isengard shortly) but it does not seem to kick back in after playing a video? so its only working on startup and until you play you first anything.

ideas?
(This post was last modified: 2015-12-01 19:03 by apeg.)
find quote
apeg Offline
Fan
Posts: 350
Joined: Oct 2008
Reputation: 2
Post: #7
Figured it out but using a different script:

https://github.com/KenV99/service.xbmc.callbacks2

That's a plugin that lets you run a variety of your own scripts based on kodi actions; stop, start, boot...

From there i wrote a simple script to play my MP3:
Code:
#!/bin/sh
kodi-send -a "PlayMedia(/LOCATION OF YOUR MP3/MUSIC.mp3)";

I then apply that script to "onboot" and "onstop" and we're done. when the mp3 finishes the on stop action is triggered which then causes it to play itself again. When you play a real video the mp3 stops and plays again once finished.


Cheers,
(This post was last modified: 2015-12-02 18:16 by apeg.)
find quote
the_bo Offline
Fan
Posts: 472
Joined: Mar 2015
Reputation: 27
Post: #8
(2015-12-02 17:38)apeg Wrote:  Figured it out but using a different script:

https://github.com/KenV99/service.xbmc.callbacks2

That's a plugin that lets you run a variety of your own scripts based on kodi actions; stop, start, boot...

From there i wrote a simple script to play my MP3:
Code:
#!/bin/sh
kodi-send -a "PlayMedia(/LOCATION OF YOUR MP3/MUSIC.mp3)";

I then apply that script to "onboot" and "onstop" and we're done. when the mp3 finishes the on stop action is triggered which then causes it to play itself again. When you play a real video the mp3 stops and plays again once finished.


Cheers,

Thanks for this apeg. Works great Big Grin

If i wanted to have multiple random songs play. What lines do i need to add in the script?

Thanks
find quote
noblesavage Offline
Junior Member
Posts: 3
Joined: May 2017
Reputation: 0
Post: #9
I tried this method successfully yesterday. Works like a charm. Here is my problem now, the play icon is displayed on the home page and preventing all widgets from displaying. I have searched on how to make this not visible but cannot find it. Any idea anyone? If not make it invisible, simply moving it would work also, but I cant figure out what file I need to be editing. Any assistance is greatly appreciated.
find quote
noblesavage Offline
Junior Member
Posts: 3
Joined: May 2017
Reputation: 0
Post: #10
Okay, solved that problem. But whenever I use this addon, my widgets on the homepage will not display. Any idea why?
find quote