PDA

View Full Version : Calling another menu button from another plugin..?



joshley
2004-09-28, 04:32 PM
Does anyone know how I can call, say, the 'Live TV' or 'DVD' button/function from another plugin?
Thanks!
joshley

sub
2004-09-28, 04:38 PM
You cant current "switch" plugins using the plugin API. In the same way the pluginhelper has APIs for playing music and video files, there are also calls for playing DVDs. These were added in the last release.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> /// &#60;summary&#62;
/// Attempts to play any DVD in the GB-PVR configured DVD drive
/// &#60;/summary&#62;
/// &#60;param name=&#34;filename&#34;&#62;&#60;/param&#62;
void PlayDVD&#40;&#41;;

/// &#60;summary&#62;
/// Attempts to play a ripped DVD from the specified directory
/// &#60;/summary&#62;
/// &#60;param name=&#34;filename&#34;&#62;&#60;/param&#62;
void PlayDVDFromDirectory&#40;String directory&#41;;

/// &#60;summary&#62;
/// Attempts to play a ripped DVD from a specified ISO file
/// &#40;requires daemon tools to be installed and configured&#41;
/// &#60;/summary&#62;
/// &#60;param name=&#34;filename&#34;&#62;&#60;/param&#62;
void PlayDVDFromISO&#40;String filename&#41;;[/QUOTE]

joshley
2004-09-28, 05:08 PM
Thanks Sub&#33; That&#39;s almost everything I need&#33; Is there a method for calling Live TV? So I could have a plugin with a &#39;shortcut&#39; to Live TV?
joshley

sub
2004-09-28, 05:11 PM
I&#39;ll try an add this for the next release. I havn&#39;t really had much time for additions or bugs in the last coule of weeks. So far there has only been two small items added to the change.log for the next release.

joshley
2004-09-28, 05:17 PM
Cheers Sub&#33; I&#39;ll keep an eye out&#33;