mpTinoMediaServer beta (1 Viewer)

Flipit

Portal Pro
February 19, 2005
100
0
Are you using the Intel .Net UPnP.dll stack or p/invoke / wrappered C++ one ?

The C# stack original came with the Code Generator but no longer seems to be included. Don't know it it's readily avialable any more. Doesn't have many C# examples and the syntax was a bit hard to follow to start with but I'm getting to grips with it and was planning on try to build a MediaServer v1.0 for MP music as a test of my skills ( not the best coder in the world) ... could join you guys if you need a hand...

Flipit

Ahh.. just seen the zip file.. it is the .net dll... word of caution, there are some spelling mistakes in the MetaData dll class definitionsl (at leat the one i have) which throw errors on the methods for adding container items... think one was in the musicAlbum container (distributor or provider property I think)

Any source code you can share ?

Final post I promise... I think the reason WMP11 can't see this is the same reason the PS3 can't. They are DLNA defined upnp devices, so require a DLNA compliant upnp server... As far as I can tell, well for music anyway, this is implemented by adding some additional strings to http get i.e.

instead of
http-get:*:audio/mpeg3:*

it should be
http-get:*:audio/mpeg3: DLNA blah blah blah

I have the full string written down at home as I used it to write a test app for my PS3 from the Platinum C++ SDK. (worked fine after adding the extra clause, used to give invalid format errors before, never tried WMP11 though... was actually trying to get the album art to work )
 

pt-1

New Member
November 6, 2006
3
0
London UK
Home Country
Germany Germany

Flipit

Portal Pro
February 19, 2005
100
0
Just a quick update...

String for a DLNA mp3 is as follows:

"http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0"

String for a jpeg is:

"http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=01;DLNA.ORG_CI=0"


Flipit.
 

Kaoh

Portal Pro
September 11, 2006
244
28
Home Country
Netherlands Netherlands
Hey, sorry I was on holiday.

Interesting info there Flipit, ill see and try to implement that addition to the string, but since we use the Intel UpnP dlls its all rather blackboxed.
I did noticed that the mediaplayer could not connect, but for me it cant even browse media, so I am not sure if it will ever play this as a UPnP client device. I will try to look into this though.
But time is limted and MpTino seems missing ;).
 

Dadeo

Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Help! I installed the plugin but when I try to configure it I get an Unhandled Exception error. See details below. I am using MP 2.2.0 stable version.

    ************** Exception Text **************
    System.TypeLoadException: Could not load type 'MediaPortal.Profile.Settings' from assembly 'Utils, Version=1.0.2546.32604, Culture=neutral, PublicKeyToken=null'.
    at MPTino.UPnP.MPPlugin.UPnPMediaServer.Setup.LoadSettings()
    at MPTino.UPnP.MPPlugin.UPnPMediaServer.Setup..ctor()
    at MPTino.UPnP.MPPlugin.UPnPMediaServer.MediaServer.ShowPlugin()
    at MediaPortal.Configuration.Sections.PluginsNew.itemConfigure_Click(Object sender, EventArgs e)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    Configuration
    Assembly Version: 1.0.2548.23843
    Win32 Version: 1.0.2548.23843
    CodeBase: file:///C:/Program%20Files/MediaPortal/Configuration.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Core
    Assembly Version: 1.0.2546.32606
    Win32 Version: 1.0.2546.32606
    CodeBase: file:///C:/Program%20Files/MediaPortal/Core.DLL
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Databases
    Assembly Version: 1.0.2546.32610
    Win32 Version: 1.0.2546.32610
    CodeBase: file:///C:/Program%20Files/MediaPortal/Databases.DLL
    ----------------------------------------
    DirectShowLib
    Assembly Version: 1.4.0.32931
    Win32 Version: 1.4.0.32931
    CodeBase: file:///C:/Program%20Files/MediaPortal/DirectShowLib.DLL
    ----------------------------------------
    System.ServiceProcess
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
    ----------------------------------------
    Microsoft.DirectX.Direct3D
    Assembly Version: 1.0.2902.0
    Win32 Version: 9.05.132.0000
    CodeBase: file:///C:/Program%20Files/MediaPortal/Microsoft.DirectX.Direct3D.DLL
    ----------------------------------------
    System.Runtime.Serialization.Formatters.Soap
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
    ----------------------------------------
    System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    Bass.Net
    Assembly Version: 2.3.0.9
    Win32 Version: 2.3.0.9
    CodeBase: file:///C:/Program%20Files/MediaPortal/Bass.Net.DLL
    ----------------------------------------
    RemotePlugins
    Assembly Version: 1.0.2546.32615
    Win32 Version: 1.0.2546.32615
    CodeBase: file:///C:/Program%20Files/MediaPortal/RemotePlugins.DLL
    ----------------------------------------
    Microsoft.DirectX.DirectInput
    Assembly Version: 1.0.2902.0
    Win32 Version: 5.04.00.2904
    CodeBase: file:///C:/Program%20Files/MediaPortal/Microsoft.DirectX.DirectInput.DLL
    ----------------------------------------
    Microsoft.DirectX
    Assembly Version: 1.0.2902.0
    Win32 Version: 5.04.00.2904
    CodeBase: file:///C:/Program%20Files/MediaPortal/Microsoft.DirectX.DLL
    ----------------------------------------
    BassRegistration
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/MediaPortal/BassRegistration.DLL
    ----------------------------------------
    TVCapture
    Assembly Version: 1.0.2546.32612
    Win32 Version: 1.0.2546.32612
    CodeBase: file:///C:/Program%20Files/MediaPortal/TVCapture.DLL
    ----------------------------------------
    TaskScheduler
    Assembly Version: 1.1.1007.26951
    Win32 Version: 1.1.1007.26951
    CodeBase: file:///C:/Program%20Files/MediaPortal/TaskScheduler.DLL
    ----------------------------------------
    System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
    ----------------------------------------
    Dialogs
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Program%20Files/MediaPortal/plugins/windows/Dialogs.DLL
    ----------------------------------------
    WindowPlugins
    Assembly Version: 1.0.2548.23861
    Win32 Version: 1.0.2548.23861
    CodeBase: file:///C:/Program%20Files/MediaPortal/plugins/windows/WindowPlugins.dll
    ----------------------------------------
    XihSolutions.DotMSN
    Assembly Version: 2.0.1.15051
    Win32 Version: 2.0.1.15051
    CodeBase: file:///C:/Program%20Files/MediaPortal/plugins/windows/XihSolutions.DotMSN.DLL
    ----------------------------------------
    Utils
    Assembly Version: 1.0.2546.32604
    Win32 Version: 1.0.2546.32604
    CodeBase: file:///C:/Program%20Files/MediaPortal/Utils.DLL
    ----------------------------------------
    SubtitlePlugins
    Assembly Version: 1.0.2546.32624
    Win32 Version: 1.0.2546.32624
    CodeBase: file:///C:/Program%20Files/MediaPortal/plugins/subtitle/SubtitlePlugins.dll
    ----------------------------------------
    TagReaderPlugins
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/MediaPortal/plugins/tagreaders/TagReaderPlugins.dll
    ----------------------------------------
    ExternalPlayers
    Assembly Version: 1.0.2546.32617
    Win32 Version: 1.0.2546.32617
    CodeBase: file:///C:/Program%20Files/MediaPortal/plugins/externalplayers/ExternalPlayers.dll
    ----------------------------------------
    Interop.iTunesLib
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Program%20Files/MediaPortal/Interop.iTunesLib.DLL
    ----------------------------------------
    ProcessPlugins
    Assembly Version: 1.0.2548.23824
    Win32 Version: 1.0.2548.23824
    CodeBase: file:///C:/Program%20Files/MediaPortal/plugins/process/ProcessPlugins.DLL
    ----------------------------------------
    UPnPMediaServer
    Assembly Version: 1.0.2712.41784
    Win32 Version: 1.0.2712.41784
    CodeBase: file:///C:/Program%20Files/MediaPortal/plugins/process/UPnPMediaServer.DLL
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
     

    Kaoh

    Portal Pro
    September 11, 2006
    244
    28
    Home Country
    Netherlands Netherlands
    I think you need to upgrade to a svn build of 0.2.2.0 it is only tested on later svn builds then the original 0.2.2.0 stable release and they changed some major stuff in there.
     

    Flipit

    Portal Pro
    February 19, 2005
    100
    0
    Koah,

    welcome back.. go anywhere nice ?

    I started looking at a making a renderer for MP, the Intel Upnp side doesn't seem to bad... LastChange actions on the AvTranport and RenderControl service have thrown me a bit... took me for ever to figure out that the Intel device spy expects event xml as &lt;event... instead of <event... nice ... have to find a way of encoding that as a string from an xmlwriter.. little experience with that so all new to me..

    I figure if I only expose the actions and state variables from a renderedevice(device builder) class as events and properties I can then write a plugin for MP using the exisiting g_player comands from the events and hide the upnp stuff on the renderdevice class itsef. Haven't go that far yet though... will take some time I'm thinking... I guess I'll need to write a control point as well, as so far I've been using the device spy to do all the actioning for me...

    Flipit
     

    Kaoh

    Portal Pro
    September 11, 2006
    244
    28
    Home Country
    Netherlands Netherlands
    Yeah, I have been to Sweden, very nice indeed.

    Mediaportal as UPnP renderer would be nice indeed.

    One would always only want to use one server and all its devices as client, MP as client does make more sence, however my network and UPnP are a bit unstable, music doesnt play for hours and hours here, so I want MP always to us file shares, then everything goes fine. Else I would have prefered that setup also.
     

    Users who are viewing this thread

    Top Bottom