locked
Smartphone emulator and Windows Media Player 10 - adding songs to the library RRS feed

  • Question

  • Hi.

    I am currently developing a media player for smartphone, in C#, using Visual Studio 2005, Windows Media Player 10 SDK, and Windows Mobile 5 Smartphone SDK.

    For trying my application I use Smartphone emulator for Windows Mobile 5.

    I have the following problem.

    I emulate a storage card using folder sharing. But when I use "update library" in Windows Media Player 10, it doesn't collect the music files in the shared folder. During the update process, it repports "n files found", but none is added to the library, and the library remains empty. Otherwise if the files weren't in the Shared Folder (or any subfolder of it, like My Documents, My Music, etc.) files are added correctly. In this way the windows media player library can't contain songs from the shared folder. Otherwise, if I use "File Open" from the library menu, it can play a song from Shared Folder. How to make the Windows Media Player 10 library on the Emulator contain songs from the Shared Folder?

    I tried to add the songs to the library from my program, using something like:

    private WMPLib.WindowsMediaPlayer Player;

    (...)

    Player.mediaCollection.add("\\Storage Card\\Martial.mp3");

    And I get this:

    System.Runtime.InteropServices.COMException was unhandled
      Message="0x80070006"
      ErrorCode=-2147024890
      StackTrace:
        at WMPLib.IWMPMediaCollection.add()
        at DeviceApplication1.Form1.ReadFileWithSongsDescription()
        at DeviceApplication1.Form1..ctor()
        at DeviceApplication1.Program.Main()

    So, I can't add songs to the library this way.

    How to make the songs from the Shared Folder become part of Windows Media Player 10 library?

    Best,

    Andreja

     

    Thursday, March 30, 2006 3:40 PM

Answers

  • This turns out to be a bug in the Folder Sharing driver (vcefsd.dll) in Windows Mobile 5.0, which blocks creation of the database file used by Windows Media Player to store the collection.  The database is stored on the same storage card as the media, so that the media and database travel together, if you unplug the card.

    Unfortunately, there is no workaround.  Look for a fix in an upcoming Windows Mobile release.

    Barry

    Tuesday, April 18, 2006 10:22 PM

All replies

  • The error you are getting is INVALID_HANDLE. I've seen some pretty weird stuff going on with trying to work with a SQL Mobile database located in the emulator's shared folder. I wonder if this is the same thing. Any chance you could test this on a real device?
    Thursday, April 6, 2006 10:03 PM
  • This turns out to be a bug in the Folder Sharing driver (vcefsd.dll) in Windows Mobile 5.0, which blocks creation of the database file used by Windows Media Player to store the collection.  The database is stored on the same storage card as the media, so that the media and database travel together, if you unplug the card.

    Unfortunately, there is no workaround.  Look for a fix in an upcoming Windows Mobile release.

    Barry

    Tuesday, April 18, 2006 10:22 PM
  • thanks alot mannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
    Sunday, April 8, 2007 9:42 PM