Basic MythTV plugin configuration: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 1: Line 1:
Plugin support in MythTV is pretty good, but a little rough around the edges.
Plugin support in MythTV is great, but a little rough around the edges to set up.  Here is a quick setup HOWTO.


# Add a button to the mythtv project.
# In the mythplugins project, select an existing plugin to clone, and copy the directory.
#: In my case, I added the following block to [mythtv/programs/mythfrontend/library.xml]:
# In the mythplugins project, update the configuration file to build your new plugin.
#:  <button>
# In the mythtv project, add a button to the XML ui to access your plugin.
#:      <type>DJ_PLAY</type>
# Bang away on your new plugin!
#:      <text>Start DJ</text>
 
#:      <action>JUMP Start DJ</action>
== Details ==
#:      <depends>mythmusic</depends>
 
#:      <depends>mythdj</depends>
1. I chose to clone mythmusic.
#:  </button>
 
# Add a plugin to the mythplugins project.
2. Here's what I needed to add to [mythplugins/configure]:
 
 
3. In my case, I added the following block to [mythtv/programs/mythfrontend/library.xml]:
  <button>
      <type>DJ_PLAY</type>
      <text>Start DJ</text>
      <action>JUMP Start DJ</action>
      <depends>mythmusic</depends>
      <depends>mythdj</depends>
  </button>
 
4. I'm doing it now!

Revision as of 16:20, 14 November 2008

Plugin support in MythTV is great, but a little rough around the edges to set up. Here is a quick setup HOWTO.

  1. In the mythplugins project, select an existing plugin to clone, and copy the directory.
  2. In the mythplugins project, update the configuration file to build your new plugin.
  3. In the mythtv project, add a button to the XML ui to access your plugin.
  4. Bang away on your new plugin!

Details

1. I chose to clone mythmusic.

2. Here's what I needed to add to [mythplugins/configure]:


3. In my case, I added the following block to [mythtv/programs/mythfrontend/library.xml]:

  <button>
     <type>DJ_PLAY</type>
     <text>Start DJ</text>
     <action>JUMP Start DJ</action>
     <depends>mythmusic</depends>
     <depends>mythdj</depends>
  </button>

4. I'm doing it now!