How to use iTunes COM SDK to set Media Kind for tracks

There is no obvious function to set Media Kind of a track from iTunes COM SDK. Just curious if anyone knows how to do it programmatically?

AFAICT there isn't a way to do it via the COM SDK. I currently do it by simulating window events using AutoIT.
File a bug report as an enhancement request if you want it:
https://bugreport.apple.com
You'll need an ADC account; "ADC Online" accounts are free:
http://developer.apple.com/products/membership.html

Similar Messages

  • ITunes COM SDK to sync Audiobook with iOS 5 issue

    My application has been using iTunes COM SDK for Windows to add tracks into iOS devices and it's been working for years. Until the recently released iTunes 10.5 versus iOS 5, the added tracks are missing from the iOS 5 devices (iPhone, iPad, etc.).
    The SDK calls are returned successfully and from desktop, the iTunes 10.5 shows the tracks under "Books" folder of iOS 5 device correctly. I can also play it form desktop. But, from the iOS 5 device, the track is totally missing!!! However, if I perform a search in the device with the track name, then I can find it and play it. It just does not list under the Audiobooks folder of the device!
    If I used the same SDK calls to add to "Music" folder, then it works fine.
    Any idea? I suspect it is a bug either in iTunes 10.5 or iOS 5? Because apparently the audio track is there, iTunes 10.5 sees it, but the iOS 5 can't?
    Please help.
    Thanks.

    Thanks for the reply. The functions from iTunes COM SDK are straightforward. Find the IITIPodSource to the connected device and then obtain its IITLibraryPlaylist interface to call AddFile() or AddTrack() depends on whether the audio file is from file system or from iTunes Library. The trick for the audio file to be categorized in Audiobooks is to use ".m4b" file extension for AAC encoded format.
    It has been working for earlier iTunes versus iOS 4 and under, and it is still working, the file still shows up in iTunes > iOS 5 device > Books. However, the iOS 5 device's Music app does not pick it up. I found that if I tried to use ".m4a" then the iOS 5 device will pick it up under "Songs" (or "Music" under iTunes).
    I think either the AddTrack() or AddFile() calls have bugs or the iOS 5 Music app has glitch that cannot pickup certain files added into device. I've submitted bugs to http://bugreport.apple.com, at the same time, maybe someone from the community has idea to work around this?

  • HT201303 how to use itune for my iphone?

    how to use itune ?

    Hi Rashid,
    To use itunes for Ur iPhone click http://www.apple.com/itunes/how-to/#video-sync
    Setting up syncing
    Tutorial:
    Before setting up syncing you should download and install the latest version of iTunes. Wi-Fi syncing requires iTunes 10.5 or later and iOS 5 or later. You can change your sync options at any time. Each time you sync, content is synced between your iOS device and computer to reflect new, updated, or deleted content.
    USB syncing
    Open iTunes.
    Connect the iOS device to your computer using the included USB cable and select it in iTunes under Devices on the left-hand side:
    Some tabs may not appear if you do not have corresponding content in your library. For example, if you do not have any podcasts in your library, the corresponding Podcast tab will not appear.
    Click Apply, in the lower-right corner of the screen, to sync.
    Wi-Fi syncing
    Open iTunes
    To set up Wi-Fi syncing, connect your iOS device to your computer with the included USB cable. Select your device under Devices on the left-hand side.
    In the Summary tab, select "Sync with this [device] over Wi-Fi".
    Whenever the computer and the iOS device are on the same network, the iOS device will appear in iTunes, and you can sync it. The iOS device will sync automatically when all of the following are true:
    The iOS device is plugged in to power
    iTunes is open on the computer
    The iOS device and the computer are on the same Wi-Fi network
    While the iOS device appears in the left-hand column of iTunes, you can select the content tabs and configure sync options.
    Click Apply or Sync to sync the iOS device.
    If the iOS device does not appear in the Devices section or you are unable to sync, please see this article for troubleshooting.
    What you can sync
    Applications
    Audio content—music, podcasts, audiobooks, and iTunes U content
    Bookmarks
    Books
    Contacts
    Calendars
    Movies and TV shows
    Photos
    Notes
    Documents (File Sharing apps only)
    Ringtones
    Additional Information
    The first time you sync the Info tab with your iOS device, you are asked if you want to merge data, replace data on the service, or replace the data on your computer from the following applications:
    Mac: Address Book, iCal, Microsoft Entourage, or Microsoft Outlook 2011
    PC: Microsoft Outlook, Outlook Express, Windows Addressbook (XP) and Windows Contacts (Vista and Windows 7)
    For more information about syncing your device with your computer, see the user's guide or see this article.

  • ITunes COM SDK License Warning

    Hi,
       I'm developing a commercial app that works with the iTunes COM SDK. However, on the download page for the SDK, there's this warning:
    Warning: Pre–release software is Apple confidential information. Your unauthorized distribution of pre–release software or disclosure of information relating to pre–release software (including the posting of screen shots) may subject you to both civil and criminal liability and result in immediate termination of your ADC Membership.
    I know this download is a few years old and, presumably, so is the message. However, since that's not made clear anywhere on the page, can I still use this SDK for commercial purposes or would it be considered as 'unauthorized distribution' since I have to include the DLL with my app? (As a side note, this message doesn't appear on all downloads,so it's not just a generic one).
    Thanks

    No, not sure how you've drawn the conclusion I'm just confirming that I've understood the warning message correct and that the SDK being released, whether in source or binary form, actually counts as 'unauthorized distribution'. I'm new to Apple SDKs, so I'm unfamiliar with how things like this work here. Seeing how widespread the iTunes COM tutorials are, I thought I might've misunderstood something regarding the warning. So, essentially, you're saying the answer to my question is no, it can't be used for commercial purposes. Correct?

  • ITunes COM SDK broken on Windows XP??

    I have an application called TuneUp Companion (http://www.tuneupmedia.com) that was working fine with iTunes 7.7 and after upgrading is broken.
    It works fine on Windows Vista ...but iTunes 8 on Windows XP seems to give a message back that the iTunes COM interface is not available.
    Are there known issues with the iTunes COM SDK for Windows (7/15/08 release) on Windows XP??
    Thanks, Raza

    much of this is speculation because I can't remember how many previous versions of iTunes were on these machines...but this is what we're seeing:
    extra entries in two registry keys... when it didn't work these two registry entries contained "AppID" values:
    HKEYCLASSESROOT\CLSID\{B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}\Implemented
    Categories
    HKEYLOCALMACHINE\SOFTWARE\Classes\CLSID\{B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}
    with the APpID set to the same iTunes CLSID string:
    {B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}
    and when it did work the AppIDs entries were gone. this is only on XP.
    on vista there never was any AppID entry.
    but, again, i wonder if that was added by previous versions of iTunes which we didn't install on the vista machines...
    Also, worthy of noting is this post from Apple:
    http://support.apple.com/kb/HT1925
    ciao, raza

  • How to use itunes gift card to buy apps on ipad 2? Do I need a credit card for it?

    how to use itunes gift card to buy apps on ipad 2? Do I need a credit card for it?

    I'm sorry, but there is nothing that I can do to help you with this situation. I don't know why, but many people have problems when they try to buy gems in the Clash of Clans game. Personally, I wouldn't touch the game with a ten foot pole, but that's just my opinion.
    You will have to contact iTunes Store Support and ask for their help. You can email them from here.
    https://getsupport.apple.com/Issues.action

  • How to use shared parameter on request set

    Hi
    I have a request set with two stages
    First stage contains From Date and To date where i have named the shared parameter as StartSP and EndSP
    i have to use these shared parameter in one of the query in next stage where my Type is SQL Statment and i have these two date fields From date and To date in next stage as well where i am able to retirve the values from previous stage
    based on these values i need to get the name in next parameter where my Type is SQL Statment
    select name from tablename where '02-MAR-09' > =start_Date and '29-MAR-09' <=end_Date
    I have written SQL as
    select name from tablename where StartSP > =start_Date and EndSP <=end_Date but it throws an error.
    I need the values of 02-Mar-09 and 29-Mar-09 from StartSP and EndSP
    Appreciate if any one has idea about this.

    hi user;
    please check:
    http://download-west.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/repset04.htm
    http://download-east.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/10gch609.htm
    Also you can check this search:http://www.google.com.tr/search?hl=tr&source=hp&q=How+to+use+shared+parameter+on+request+set+&meta=&aq=f&oq=
    Hope it helps
    Regard
    Helios

  • Need help how to use itunes card to download music

    Need help how to use itunes card to download music

    If you want to add the iTunes card to your account, then in the iTunes app on the iPad you should be able to scroll to the bottom of the Music tab and there should be a Redeem button - there is more info here : http://support.apple.com/kb/HT1574

  • ITune COM SDK supports GUI access?

    I am searching for  API to log-in to iTune with Apple ID and Password.
    I have  Apple ID and Passwords written in an excel file.
    What I want to do is to:
    Read the excel file line by line to take ID/PASS
    Log-in to iTunes with that ID/PASS
    Click the download button
    Is there any  library for this purpose (For step #2 and  #3)? Does iTunes COM SDK support that GUI (input in to the ID - PASSWORD field) access?
    This is urgent for me.
    Please anyone help.
    Thanks in Advance
    Rahman

    It seems that it is reading something in the ObAccessClient.xml file, because it receives a response from the Access Server. I would guess some sort of communications error - perhaps a certificate error if Open transport mode is not being used. Also, are the times on the asdk machine and the Access Server in sync?
    Regards,
    Colin

  • HT1212 I don't know how to use Itunes 11 So i can't unlock my phone

    I don't know how to use Itunes 11 So i can't unlock my phone

    If your iPhone is disabled, then you must use iTunes on your computer to restore iOS. You don't have to be an expert using iTunes, just follow the instructions here: http://support.apple.com/kb/ht1414

  • Where did the iTunes COM SDK go?

    I was going to go download the iTunes COM SDK, originally at http://developer.apple.com/sdk/, but it appears that when you click on the link to get it, it redirects you to the ADC site... which doesn't have the iTunes COM SDK anywhere in there. Does anyone know where it went?

    You now need to have an ADC membership to download the SDKs. You can sign up for the free Online Developer membership here:
    http://developer.apple.com/products/membership.html

  • How to use union statement with declare & set function?

    Hi Experts,
            i  have small query about how to use union statement with declare & set function?
    Example as below :
    DECLARE @name AS date
    Declare @name2  AS date
    /* SELECT FROM [2013].[dbo].[OINV] T0 */
    /* WHERE */
    SET @name = /* T0.DocDate */ '[%1]'
    SET @name2 = /* T0.DocDate */ '[%2]'
    select  '2013',t5.U_salmannm,t1.CardName,t2.sumapplied as CollectionAmount,t2.DcntSum ,t3.DocTotal as InvoiceTotal,
    datediff(dd,t3.DocDate,t1.Docdate) as Days
    from 2013.dbo.orct t1
    inner join 2013.dbo.RCT2 t2 on t1.DocNum = t2.DocNum
    left join 2013.dbo.oinv t3 on
    t3.docentry = t2.baseAbs
    inner join 2013.dbo.ocrd t4 on t1.Cardcode = t4.CardCode
    inner join [2013].[dbo].[@CQ_RTSM] t5 on t4.U_BeatCode = t5.U_RoutCode
    where t2.DcntSum <> 0.000000 and t3.DocDate between [%1] and [%2]
    Union
    /* SELECT FROM [2014].[dbo].[OINV] T0 */
    /* WHERE */
    SET @name = /* T0.DocDate */ '[%1]'
    SET @name2 = /* T0.DocDate */ '[%2]'
    select  '2014',t5.U_salmannm,t1.CardName,t2.sumapplied as CollectionAmount,t2.DcntSum ,t3.DocTotal as InvoiceTotal,
    datediff(dd,t3.DocDate,t1.Docdate) as Days
    from 2014.dbo.orct t1
    inner join 2014.dbo.RCT2 t2 on t1.DocNum = t2.DocNum
    left join 2014.dbo.oinv t3 on
    t3.docentry = t2.baseAbs
    inner join 2014.dbo.ocrd t4 on t1.Cardcode = t4.CardCode
    inner join [2014].[dbo].[@CQ_RTSM] t5 on t4.U_BeatCode = t5.U_RoutCode
    where t2.DcntSum <> 0.000000 and t3.DocDate between [%1] and [%2]

    You have to create stored procedure in SQL only .
    Like u must have create for Crystal .
    You can execute procedure in query manager but you have to enter parameter manually..
    example
    Exec @Test '20140101' '20140501'
    Every time user has to enter it manually in yyyymmdd format in case of date parameters.
    Example
    Create Proc [@Test]
    as begin
    DECLARE @name AS date
    Declare @name2  AS date
    /* SELECT FROM [2013].[dbo].[OINV] T0 */
    /* WHERE */
    select  '2013',t5.U_salmannm,t1.CardName,t2.sumapplied as CollectionAmount,t2.DcntSum ,t3.DocTotal as InvoiceTotal,
    datediff(dd,t3.DocDate,t1.Docdate) as Days
    from 2013.dbo.orct t1
    inner join 2013.dbo.RCT2 t2 on t1.DocNum = t2.DocNum
    left join 2013.dbo.oinv t3 on
    t3.docentry = t2.baseAbs
    inner join 2013.dbo.ocrd t4 on t1.Cardcode = t4.CardCode
    inner join [2013].[dbo].[@CQ_RTSM] t5 on t4.U_BeatCode = t5.U_RoutCode
    where t2.DcntSum <> 0.000000 and t3.DocDate between @Name and @Name2
    Union
    /* SELECT FROM [2014].[dbo].[OINV] T0 */
    /* WHERE */
    select  '2014',t5.U_salmannm,t1.CardName,t2.sumapplied as CollectionAmount,t2.DcntSum ,t3.DocTotal as InvoiceTotal,
    datediff(dd,t3.DocDate,t1.Docdate) as Days
    from 2014.dbo.orct t1
    inner join 2014.dbo.RCT2 t2 on t1.DocNum = t2.DocNum
    left join 2014.dbo.oinv t3 on
    t3.docentry = t2.baseAbs
    inner join 2014.dbo.ocrd t4 on t1.Cardcode = t4.CardCode
    inner join [2014].[dbo].[@CQ_RTSM] t5 on t4.U_BeatCode = t5.U_RoutCode
    where t2.DcntSum <> 0.000000 and t3.DocDate between
    between @Name and @Name2
    end

  • Itunes COM SDK C#

    Hi. I want to control burn audio automatic using itunes COM for .net with c#. please help me about source code

    Sign up for a free developer account at https://developer.apple.com then go to https://developer.apple.com/downloads and search for iTunes COM, it will be the one result.
    tt2

  • HT4157 Can I use iTunes gift cards to set up cellular data

    Can I use iTunes gift cards to set up cellular data

    No cellular data depends on The carrier, not Apple. Gift cards are only for iTunes and AppStore purchases and in app purchases.

  • How to use ITunes France when you live in Uk ?

    how to use ITunes France on IPad ou IPhone when you live in UK ?

    Ok thanks,
    but living in uk do you think I can manage both addresses France and London ID with Apple?
    Can I keep my Apple ID UK ?
    On my Ipad, I am automatically directed on the uk store . My IPhone could still work with the Uk ID if I change it for France one?
    Sorry but I am a bit confused

Maybe you are looking for

  • Dvt:pivotFilterBar - how to get selected values from filter

    Hi all, I have a question: how to programmatically get selected values from pivot table's filter bar? I have tried to use pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);but for page edge dimensions

  • JLabel not showing in JFrame

    Here is my code, I thought I was doing this right but can't get this to show up import javax.swing.*; import java.awt.event.*; import java.awt.*; * @author  Administrator public class EditFrame extends JFrame{     LP editing_lp;     JPanel editing_pa

  • List events triggered

    Hi, How can i list all the events triggered in system during a transaction. Actually i want to know the event triggered during webui account creation in CRM server. I tried SWELS and SWEL, but was not able to get it. Regards Vikash.

  • Error when Verifying Disk.  Any hope of not having to format?

    Installed updates the other day, and my Macbook Air would not boot after this. It just sat there with the Apple logo and the circling clock deal below it. I had a Snow Leopard DVD which I hadn't gotten around to installing yet. Booted off of it and r

  • Concatenation with ' '

    Hi freinds. Plz tell me how can i concatenate two strinng in below case. Str1 = 'RAJESH' str2 = 'KUMAR' I want 'RAJESH' 'KUMAR' as concatenated string. How canit be done. regards rajesh