- How to determine a device is a media center device?
- Posted by decang on November 21st, 2005
My application need to transfer audio file (wma) to various portable devices.
Since the media center will have "author" and "Title" sub-folders created
after WMP10 transferred a wma file. Is there any way to tell the device is a
media center? So the sub-folder could be created as WMP10 did from my own
application? Thanks in advance.
- Posted by Techdango on November 21st, 2005
Hello.
Are you asking if a portable device is MCE compatible? I think if the
device has the "Plays For Sure" branding, you should be alright. Since in
the end MCE is really just Windows XP with a nice media center interface.
"decang" wrote:
> My application need to transfer audio file (wma) to various portable devices.
> Since the media center will have "author" and "Title" sub-folders created
> after WMP10 transferred a wma file. Is there any way to tell the device is a
> media center? So the sub-folder could be created as WMP10 did from my own
> application? Thanks in advance.
>
- Posted by decang on November 23rd, 2005
Thank you, Techdango. Appreciate your reply.
In my application eventually needs to have capability to tell difference
from a device whether it is using mass storage or MTP Protocol so a wma file
could be transferred into the device properly.
In Windows Media Device Manager 10 SDK, there is a function,
IWMDMDevice3::GetProperty() to get Device Property where
g_wszWMDMDeviceProtocol might help. But, when I query an IWMDMDevice3
interface on my Creative Zen PMC, it returns E_NOINTERFACE. So, I have no
way to tell if this device is MTP supported ("Plays For Sure") or using mass
storage interface.
My ultimate purpose is to transfer wma files to various devices including
mass storage and MTP supported device. So far, to insert files into devices
is successfully done; the problem is the same wma file won't be recognized
by a media center device such as Zen PMC.
I also post this on microsoft.public.windowsmedia.sdk,
http://www.ureader.com/message/2388725.aspx
Environment of development:
Windows Media Device Manager 10 SDK
Windows XP Professional
Microsoft Visual C++ .NET 2003 Version 7.1.3088
Creative Zen Portable Media Device
- Posted by decang on January 16th, 2006
Dear all,
I'd like to post here as what I found to resolve this issue (Overview for
MTP Device Developers from Media Transfer Protocol Porting Kit, find the
package to download under first link of http://msdn.microsoft.
com/windowsmedia/downloads/default.aspx):
-----------------------------------
Known Issues
The following sections provide information about known issues and solutions
involving Windows Media 10 devices.
Reporting a Track's Album Title on Portable Media Center 1.0 Devices
On Portable Media Center 1.0 devices, the g_wszWMDMAlbumTitle property is
ignored when it is applied to individual tracks. To get the equivalent
effect, perform the following steps:
Transfer the album tracks to the device.
1. Create an album object referring to these tracks.
2. Set the g_wszWMDMTitle property for the album object.
3. Set the tracks that belong to this album as references of the album
object.
4. All of the tracks will now report this title for their
g_wszWMDMAlbumTitle property.
-----------------------------------
And,
By using IID_IWMDMDevice3 interface, GetProperty(g_wszWMDMDeviceProtocol) to
return the CLSID for the protocol of your device suported (for MTP it is
{979E54E5-0AFC-4604-8D93-DC798A4BCF45}), this is how to dtermine if it is
MTP sopported device. As long as the device is MTP supported, you might need
to follow above procedure to create an album object to make PMC recognize
the file inserted into it.