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?

Similar Messages

  • Itunes COM SDK: cannot register function with iTunes Outgoing Interface

    I am doing benchmarks and I want to time the encoding of a Music CD. In order to stop the "clock" and compute the time I am trying to bind a function with the _IITConvertOperationStatusEvents::OnConvertOperationCompleteEvent()
    I am writing a AutoIt script and I can create the iTunes application object but when I use the ObjEvent function to register my function with the event above it causes a COM exception to be raised and the ObjEvent completes with an error. The exception code I get is 80040200 which seems to be a generic error.
    $objApp=ObjCreate("iTunes.Application")
    $SinkObject=ObjEvent($objApp, "ITEvent", "_IITConvertOperationStatusEvents")
    <<exception 80040200>>
    Browsing the iTunes COM TypeLib the _IITConvertOperationStatus does not seem to be a child in the iTunes object hierarchy so I think this is way the exception is being raised. I have tried to register another function with another outgoing interface and this works just perfectly: _IiTunesEvents::OnQuitting()
    Do I need to create another object which gets passed as the first parameter to the ObjEvent function?
    *Here is the entire script:*
    $ITSourceKindAudioCD = 3
    $begin = 0
    Global $trackName, $progressValue, $maxProgressValue, $SinkObject
    $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ; Install a custom error handler
    $objApp = ObjCreate("iTunes.Application")
    If @error Then
    MsgBox(0, "ObjCreate", "Create Object Failed", 3)
    Exit
    EndIf
    $event = ObjEvent($objApp, "ITEvent1_", "_IiTunesEvents")
    If @error Then
    MsgBox(0, "Failed", "IiTunesEvent binding failed", 5)
    Exit
    EndIf
    $SinkObject = ObjEvent($objApp, "ITEvent_", "_IITConvertOperationStatusEvents") ; Assign events to UDFs starting with IEEvent_
    If @error Then
    MsgBox(0, "ObjEvent binding", "ObjEvent failed!", 10)
    $objApp.Quit()
    Exit
    EndIf
    $colSources = $objApp.Sources
    $begin = TimerInit()
    For $objSource in $colSources
    If $objSource.Kind = $ITSourceKindAudioCD Then
    $strName = $objSource.Name
    $colPlaylists = $objSource.Playlists
    $objPlaylist = $colPlaylists.ItemByName($strName)
    $colTracks = $objPlaylist.Tracks
    $objApp.ConvertTracks2($colTracks)
    EndIf
    Next
    Do
    ; Wait around for the ripping to complete
    Until False
    ; This is my custom error handler
    Func MyErrFunc()
    $HexNumber = hex($oMyError.number,8)
    Msgbox(0,"","We intercepted a COM Error !" & @CRLF & _
    "Number is: " & $HexNumber & @CRLF & _
    "Windescription is: " & $oMyError.windescription )
    EndFunc
    Func ITEvent1_OnQuittingEvent()
    MsgBox(0, "Bye", "Bye-Bye", 10)
    EndFunc
    func ITEvent_OnConvertOperationCompleteEvent()
    $dif = TimerDiff($begin)
    MsgBox(0,"Time Difference",$dif)
    $objApp.Quit()
    EndFunc

    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

  • 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

  • HT1535 I own an iPhone4, an iPod 3rd generation and an iPad 2. I use the same iTunes library but unfortunately synced iPad with a different computer before syncing to my own. Do I risk losing the films/apps I've downloaded onto my iPad if I sync with my i

    I don't want to sync what is on my iPod to my iPad. (I have a 32gb iPod but only 16gb on iPad. The iPod I use mostly for music.) I can't seem to add the films I have downloaded onto iPad to iTunes. If I could do that, I could erase them from iPad to create more storage.
    This is intensely confusing, sorry.

    Question.....
    "I own an iPhone4, an iPod 3rd generation and an iPad 2. I use the same iTunes library but unfortunately synced iPad with a different computer before syncing to my own. Do I risk losing the films/apps I've downloaded onto my iPad if I sync with my iPod?"
    Answer.....
    Yes you will lose the films that you downloaded to the iPad when you sync with your own iTunes unless you transfer the purchases into your own iTunes library. Were these movies that you purchased? If so, you might be able to download them again for free. Do you have multiple computers that you sync from or is this someone else's purchased content?
    You can select whatever you want to sync to all of your devices in iTunes, you do not have to sync the same content to all device.
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    iOS: Syncing with iTunes - Support - Apple

  • 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?

  • The old computer is broken so I bought a new one. I have downloaded itunes but will not sync iphone with the new itunes. What should I do to get all the apps, songs and photos on itunes?

    The old computer is broken so I bought a new one. I have downloaded itunes but will not sync iphone with the new itunes. What should I do to get all the apps, songs and photos on itunes?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • 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

  • 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 I get itunes radio on my iphone four with ios 7

    How to I get itunes radio on my iphone four with ios 7

    So I was having the same issue and through guess and check I think I figured out the problem.
    Essentially iTunes Radio is only available in the US, hence your phone needs to know you're within the borders of the USA.
    I went into Settings > Privacy> Location Services > System Services (at bottom of the screen) and started playing around with some location systems I had turned off to preserve battery life. As soon as I turned on the "Setting time zone" function, iTunes Radio became available again.
    It looks like Apple uses that system service to determine location of the phone and thus the availability of iTunes Radio.
    You may have to close out the Radio app and restart (or even restart your phone) to make it work but so far so good for me.
    Good luck!

  • 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

  • The artwork on my ipod touch 5th generation became scrambled.It is showing completely different image while i play song.But in itunes everything seems perfect.I tried deleting all albums from itunes,restoring ipod,re-sync ipod,nothing resolved my issue

    The artwork on my ipod touch 5th generation became scrambled.It is showing completely different image while i play song.But in itunes everything seems perfect.I tried deleting all albums from itunes,restoring ipod,re-sync ipod,nothing resolved my issue.Please help me

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.

  • Itunes bombs outs when selecting "store"  with UBD.exe issue

    Itunes bombs outs when selecting "store"  with UBD.exe issue - what is the remedy?

    Hello there, tuneasa.
    The following Knowledge Base article offers some great steps for troubleshooting issues with iTunes performance:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Iphone 4 s syncing problem with ios 7 & itune 11

    I have updated my iphone 4s with ios 7 - also i have updated my itune with version 11 - for some reason i can not sync my music from my itune to iphone. It freeze at waiting for changes to be applied and then nothing -

    bes2dt10
            Nov 22, 2013 8:59 AM    
    The easy and quick way to fix this is to connect your iphone to itune...
    1.Go into your iphone (Top right of itune).
    2.You'll see 3 different topics in bold - Iphone, backups and options.
    3.Go to options and uncheck all the boxes (make sure you remeber what was been check before you uncheck anything in the boxes).
    4.Check only - manually manage music and video and press apply (bottom right of itune).
    5.Wait for it to finish the process (it should delete everything).
    6.Then it is up to you.... either go by each tap and sync each one (info, apps, tones, music, movies, TVshows, podcast and photos) or uncheck manually manage music and check whatever it used to be before you unchecked everything.
    7.All done, Everything should be working perfectly.
    Please shared to other that needed help
    Appologiez to my behalf the language, Not really good at English grammas LOL

  • Can I sync my 2 new devices with iOS 5.1 with my iTune PC 10.7v previously synronize with iOS 6.0 device. From joe thanks

    Can I sync my 2 new devices with iOS 5.1 on it with my iTune PC 10.7v previously synchronize with my old devices with iOS 6.0 on it. I don't want to update my iOS 5.1. Thanks from Joe

    You can sync as many devices as you like

  • After installing iso6 on new ipad I cannot access itunes store. it comes up cannot connect to itunes store. apple caused this problem with ios 6 they should tell us how to sort the bugs

    After installing ios 6 I cannot update or download apps. Ipad comes up cannot connect to itunes store.  Apple have caused so many bugs with ios 6. They should tell us how to to fix the probvlems

    The Complete Guide to Using the iTunes Store
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    This works for some users. Not sure why.
    Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
     Cheers, Tom

Maybe you are looking for

  • Verizon gives the runaround – Doesn't honor agreed upon price.

    I would like to tell everyone about three problems I am having with FiOS. Problem 1: Just after Christmas I tried to order FiOS service online, but I had issues with the website (Verizon connections page – I get a discount through my employer). So af

  • Mailbfr aborted (probably because of a space in the path)

    I thought I'd give mailbfr a try. My first attempt failed. I understand that mailbfr is neither provided nor supported by Apple, but maybe some of you guys are able to help me. /usr/sbin/mailbfr -b /private/var/root/Desktop/bkp Stopping Mail Services

  • How can I use my free trial?

    The photoshop 1 month free trial I downloaded will not let you utilize the program, all it lets you do is view a tutorial. I would like to use photoshop to see if I am able to use it and if it is easy for beginners before I make a purchase. Thanks

  • How do you change the number of rows returned by an advanced datagrid...Only displays 1000 rows....I

    I am using coldfusion to query an oracle table....Query returns approximately 2000 rows, however the max rows the datagrid will display is 1000.  Does anybody know how to change this...THANKS!!

  • VBAK fields

    Hi Is it possible that some of the fields you can find it in VBAK (SAP tables) but not listed in Sales document header leavel( at document level). Why becuase today i was not able to find Risk category field in Sales order header level where as i am