Web based playlist manager (Music only) (1 Viewer)

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
Ok I got it working. The interface is a bit sparse, but I'll live with it. The speed of it also makes firefox show 'script unresponsive' errors too occasionally, usually when I'm adding a song to the playlist.

Also, it conflicts with other plugins that use socket communication, e.g. my ECP2 Plugin, and likely also the MPBlue plugin. I get an error like this:
Code:
ExceptionType: System.Net.Sockets.SocketException
Message: An existing connection was forcibly closed by the remote host
Source: System

Stack trace:
   at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.Socket.Send(Byte[] buffer)
   at WebPlaylistManager.Web.Cassini.Connection.WriteEntireResponseFromString(Int32 statusCode, String extraHeaders, String body, Boolean keepAlive)
   at WebPlaylistManager.Web.Cassini.Connection.WriteErrorAndClose(Int32 statusCode, String message)
   at WebPlaylistManager.Web.Cassini.Connection.WriteErrorAndClose(Int32 statusCode)
   at WebPlaylistManager.Web.Cassini.Connection.ProcessOneRequest()
   at WebPlaylistManager.Web.Cassini.Host.OnSocketAccept(Object acceptedSocket)
   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

They do not use the same ports though I don't think. My plugin uses TCP 3334 IIRC.

Any ideas?

Other than that, it looks good - now hopefully using your interfaces it will be possible to have the music viewed in a structured form, rather than a file listing.

Sam
 

jlewalle

Portal Member
July 12, 2006
12
0
Riverside, CA
Interesting. I didn't write any of the socket code in the web server portion, it's all borrowed from Cassini so I can't comment to how the problems might be arrising. I tested using firefox and have never seen that error...

How exactly does it conflict with the other plugins that employ sockets?
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
Hi guys -

Possibly not relevant but I thought I'd mention it, another very nice C# implementation of a threaded HTTP server that can host ASP pages can be found in the Razor Framework. Very clean code and well tested. I'm too lazy to re-read the thread but I seem to remember some question over Cassini's licensing, Razor is GPL.

I know the initial plans for this plugin are as per title and the following comments aren't necessarily aimed at this specific plugin but would love to see MP offering web based features such as tag review with suggestions on how to improve. By this I mean it offering a number of review strategies that would find those tedious little issues like one album from the same band has the artist name as 'The Stone Roses', while another album has 'Stone Roses', list all tracks with missing titles etc. Probably missing the point with existing tagging software but have so far found nothing that would allow me to spend a couple of hours going through a list of suggested changes rather than being sat in front of the TV browsing my music and finding yet another missing The or a 90% similar album name when it should be the same!

Cheers,
Smirnuff.
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
jlewalle said:
Interesting. I didn't write any of the socket code in the web server portion, it's all borrowed from Cassini so I can't comment to how the problems might be arrising. I tested using firefox and have never seen that error...

How exactly does it conflict with the other plugins that employ sockets?

When I try to access the web playlist manager, the initial page loads ok, but when I try to access my Music folder, if I don't disable my plugin MP crashes. If it is disabled, I get the firefox error but everything still works if I press continue. I guess it might be because I don't have all my songs organised into folders - I only put albums in folders, everything else is in my My Music folder.

Its not the first time this problem has occurred though - there were problems between my plugin and the MPBlue one too; not sure if they still exist. Anyway, I'll have a nose around and see what I can find.

Sam
 

devo

Retired Team Member
  • Premium Supporter
  • September 2, 2004
    215
    0
    Canada
    Smirnuff said:
    Hi guys -

    Possibly not relevant but I thought I'd mention it, another very nice C# implementation of a threaded HTTP server that can host ASP pages can be found in the Razor Framework. Very clean code and well tested. I'm too lazy to re-read the thread but I seem to remember some question over Cassini's licensing, Razor is GPL.

    Cheers,
    Smirnuff.

    Cassini is shared source license and there should be no problems using it:
    http://www.microsoft.com/resources/sharedsource/Licensing/Developer.mspx

    Here is a free spin off:
    http://ultidev.com/products/Cassini/index.htm

    and another:
    http://www.systemex.net/CassiniEx/

    Wrapping the latter in a process plug-in would not be that difficult or using either one in their current form.

    Cheers.
     

    ManOnMoon

    Portal Member
    July 26, 2006
    15
    0
    Germany
    Installation/Configuration

    Hi together,

    I tried to install this plugin - unfortunateley without success. Step 1 and 2 - no problem as soon as I realized that it's mediaportal.exe.config and not mediaplayer.exe.conf ....

    After step 2 I tried to connect with IE over http://MPIP:8080/ without any success.

    Anyhow I does not work - do I have to copy / install some additional things? :?:

    Thanks for your help!
     

    samuel337

    Portal Pro
    August 25, 2004
    772
    0
    Melbourne, Australia
    Re: Installation/Configuration

    ManOnMoon said:
    Hi together,

    I tried to install this plugin - unfortunateley without success. Step 1 and 2 - no problem as soon as I realized that it's mediaportal.exe.config and not mediaplayer.exe.conf ....

    After step 2 I tried to connect with IE over http://MPIP:8080/ without any success.

    Anyhow I does not work - do I have to copy / install some additional things? :?:

    Thanks for your help!

    Check that the WebPlaylistManager plugin is enabled in MP configration, and also that you have opened port 8080 on your MP computer's firewall if any (remember that often Windows Firewall is on by default).

    Sam
     

    Users who are viewing this thread

    Top Bottom