The Sandbox Thread

49 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

C9Music 1.3

Back to Forum: The Sandbox
  • User profile image
    Sven Groot

    With this media player plugin, you can automatically have the "Avatar Caption" of your C9 profile reflect the song you're currently listening to.

    Included in the download is the MSI installer.

    If you had previously installed an older version of C9Music, you need to uninstall that before installing the new version.

    .Net Framework 2.0 final required. Beta versions no longer supported.

    You also need one of the following media players:
    - Windows Media Player 10
    - Winamp (tested with version 5.12, other versions may work)
    - iTunes (tested with version 6.1, other versions may work)

    Note for Winamp users:
    After installing the MSI package in the zip file, you must run "Install Winamp plugin" from the C9Music folder in your start menu to install the Winamp plugin to your Winamp plugins folder.
    If you had installed a previous version of the C9Music Winamp plugin, you must run the "Install Winamp plugin" option again after installing the new version.

    Note for iTunes users:
    To use C9Music with iTunes you must launch the "C9Music for iTunes" shortcut from the C9Music folder in your start menu. This application must remain running for C9Music to work.

    After installation, the first time the player is started the property dialog is shown, allowing you to enter the username and password for your C9 account. If you have run a previous version of C9Music, the dialog might not be shown automatically.

    No, this is not a phishing app. If you don't trust me, check the source, and if you really don't trust me, compile it yourself. Smiley

    UPDATE 2006-01-20: Version 1.3 uploaded. New in version 1.3:

    • Compatible with .Net Framework 2.0 final (beta versions no longer supported).
    • Improved C9 user profile handling.
    • Improved update checking.
    • Improved documentation.
    • Performance and reliability enhancements.

    DISCLAIMER: I am not responsible if this messes up your profile.

    For more information or to download the source code, visit http://www.ookii.org/c9/music.

  • User profile image
    Minh

    Cool idea!  Is there a check to send only names of songs & not videos  Wink

  • User profile image
    Sven Groot

    Minh wrote:
    Cool idea!  Is there a check to send only names of songs & not videos 

    It only does songs period. It ignores all other media types.

  • User profile image
    andokai

    Great job Sven. I wonder how hard it is to extend for iTunes?

  • User profile image
    Sven Groot

    andokai wrote:
    Great job Sven. I wonder how hard it is to extend for iTunes?

    I don't know how to write plugins for iTunes (nor am I going to, since I don't use it), but if someone wants to, calling either the PluginGlue DLL or the Channel9.Music DLL directly from such a plugin is all that's needed to make it work. A grand total of three functions that you need to be aware of (one to bring up the property dialog, one to set the message and one to clear the message). If anyone wants to do this I'd be glad to help them with any problems they might encounter.

  • User profile image
    andokai

    That's cool I may look into it myself if I can find the time now that you've given me the building blocks.

  • User profile image
    Maurits

    Sven Groot wrote:
    check the source


    I must admit, I did Smiley

    Very nice.  UrlEncode()-ing and everything Smiley

    Hmmm... the only problem I could foresee is if profile fields are added in the future.  If a profile field is added (say, Public PGP Key) and populated, this will blank it out again, right?

    Not sure if there's a way to fix that though.  Is it possible to generically sniff the Edit Profile page for <input name=... value=...>, <select name=...><option selected value=...>, <textarea name=...>... and use the sniffed name/value's to build the POST?

  • User profile image
    Charles

    Great work. Thank you for extending C9 functionality. This type of thing is HIGHLY encouraged.

    Love it.

    C

  • User profile image
    Sven Groot

    Charles wrote:
    Great work. Thank you for extending C9 functionality. This type of thing is HIGHLY encouraged.

    It would've been a lot easier though if there was a web service I could've used to update the profile. Smiley

    As it is, I first request the login page, extract the viewstate from it, then post the credentials to the login page (together with said viewstate), retrieve the login cookie. Then I request the EditProfile page, using the login cookie, and extract the viewstate and the current profile data. I then use that data, together with the new avatar caption, to construct a complete EditProfile postback in multipart/form-data format, and send that to the server. Not exactly efficient, although it was fun figuring out how to do it. Smiley

    Also, I thank the gods for the HtmlAgilityPack, which made extracting stuff from the html pages so much easier. This isn't the first project where that library has been a real lifesaver for me. It gets my nomination for "most useful third-party .Net library". Big Smile

  • User profile image
    Charles

    We are committed to providing web service interfaces for C9 this year. We WANT you to build new C9 features like this and we want it to be easy.

    Keep up the great work.

    C

  • User profile image
    Steve411

    Sweetness! Smiley Another great app by the master Sven! I love it, however I don't have .net 2.0 installed so i can't use it. If you find a way to make it work with 1.1 let me know, I'd use it.Smiley

    -Steve

  • User profile image
    Tensor

    I guess it would be nice if the caption you posted with at the time was persisted with the post too - it would be lie a record of what you posted while listening to what.

    Just think of the reserach possibilities - linking internet rants to specific tunes Smiley

  • User profile image
    TomasDeml

    GREAT app! Cool!

    BTW nice example of managed WMP plugins...

  • User profile image
    Maurits

    Tensor wrote:
    I guess it would be nice if the caption you posted with at the time was persisted with the post too - it would be lie a record of what you posted while listening to what.

    Just think of the reserach possibilities - linking internet rants to specific tunes Smiley

    Perhaps a "signature" profile field...

  • User profile image
    Maurits

    I think this Sandbox thread is worthy of a link from the Edit Profile page... similar to W3bbo's Avatar Creator link.

  • User profile image
    MasterPi

    Just out of curiosity, is anyone using it yet? I'd like to see what it does before installing it. Smiley


    mVPstar

  • User profile image
    Sven Groot

    I've been using it, you might've seen some music tracks come by in my avatar caption.

    Anyway, expect an update tomorrow, including WinAMP and (hopefully) iTunes support. Looks like iTunes is gonna require an external application because the only plugins that seem to be possible are visual plugins, which is not what I want.

  • User profile image
    NeoTOM

    Feature request: Caption restore when music stops.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.