• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
QT & NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QT & NSData


  • Subject: QT & NSData
  • From: Brad Peterson <email@hidden>
  • Date: Sat, 6 Oct 2007 04:21:28 -0700 (PDT)

Hi all,

An app I'm working on needs to be able to play music
in the background. These files (mp3) are just stored
as part of the bundle's /Resources folder, and are
played simply like this:

	QTMovie*	music = [QTMovie movieWithFile: musicPath
error:NULL];

However, due to the licensing requirements of the
music in question, I would prefer not to simply bundle
up the mp3s inside the app, and would prefer to
obfuscate them a bit more. (I know, I know, but the
music is perfect for the app, so I'm willing to at
least experiment.)

To that end, I was thinking of how I might use an
NSData (or even QTDataReference) to hold the 5 or so
songs and then get QTMovie to play them as a playlist.


Is this possible? I thought of using NSSound instead,
with a reasonably intelligent delegate, but the docs
don't say it'll play mp3s.

Thanks!

B





____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: QT & NSData
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Window OnVisible
  • Next by Date: Re: QT & NSData
  • Previous by thread: Re: What is Object Class Name used for in bindings?
  • Next by thread: Re: QT & NSData
  • Index(es):
    • Date
    • Thread