Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > RevFE


Closed Thread
 
Share Thread Tools Display Modes
Old 05-12-2009, 08:36 PM   #1
North of the land of Hey Huns
 
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,038
malcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to all
Get the latest version (V0.31) (OLD)

Latest Version: 0.31
Download:
https://sourceforge.net/project/down...zip&a=99784981
Source:
http://carpal.svn.sourceforge.net/viewvc/carpal/

WORD OF WARNING:
The source may not match the version of the binaries. I am working to keep them up to date in parallel, but sometimes the source jumps ahead, and sometimes it's a day or two behind.

Changes from 0.30:
This release introduces a new feature, the ability to load and run .net compiled plugins (vb.net, c#, managed c++) via the InterfaceClass.dll reference.

Quick and dirty how-to for plugins:

Start a new .net library project for your favorite language, for this example I'm using c#.

Right click on "References" in the solution explorer. Click browse and find "InterfaceClass.dll" in the CarPal base directory. Select this file. At the top of your source code, below the normal "using" statements, add a new one:

using InterfaceClasses;

Below is a code example of a simple plugin, that listens for a message "SamplePlugin:test play" and sends a play command to the media engine. I will be posting a more comprehensive guide including VB.net examples and a full description of what commands are available, as well as an introduction to the event system within a day or two (As soon as I get it written up).

Code:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using InterfaceClasses; public class Plugin { public Plugin() { } InterfaceClasses.IPluginHost _hostPlugin; public String Name() { return "SamplePlugin"; //This MUST be a single word, no spaces and unique to your plugin } public String Author() { return "Michael Carpenter"; } public String Description() { return "A small sample plugin"; } public String Version() { return "1.0.0"; } public void Initialize(InterfaceClasses.IPluginHost host) { _hostPlugin = host; } public void passPluginMessage(String sender, String message) { try { IPCMessage ipcMessage = new IPCMessage(message); if (ipcMessage.getClass() == "test") { if (ipcMessage.getMethod() == "play") { _hostPlugin.passCoreMessage("SamplePlugin", "MediaEngine:media play"); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } } }

__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.

Last edited by malcom2073; 05-12-2009 at 08:39 PM.
malcom2073 is offline  
Advertisement
 
Advertisement
Sponsored links

Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XM / Sirius Worklog Nola111 Centrafuse 251 08-20-2008 11:05 AM
Andi-Mp Alpha 1 Release VBWizz Software & Software Development 14 10-25-2007 08:44 PM
[FRONTEND] MMC New Release 11.20.2006 Bitoholic Mobile Media Center 34 05-03-2007 08:59 PM
PhoneControls.NET and Nokia 6680 teo256 Software & Software Development 30 08-18-2006 11:36 AM
Archive liquid_smoke PhoneControl 387 07-23-2006 05:01 AM



All times are GMT -5. The time now is 07:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics