• 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
Re: QT & NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QT & NSData


  • Subject: Re: QT & NSData
  • From: Ricky Sharp <email@hidden>
  • Date: Sat, 6 Oct 2007 06:51:10 -0500


On Oct 6, 2007, at 6:21 AM, Brad Peterson wrote:

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.

You could look into encrypting the resource files. I do this for all my PDF artwork. In my image factory class, image file data are wrapped in NSData. I then decrypt it and pass it onto the relevant API for loading/drawing.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________

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


References: 
 >QT & NSData (From: Brad Peterson <email@hidden>)

  • Prev by Date: QT & NSData
  • Next by Date: Re: Working with XML files
  • Previous by thread: QT & NSData
  • Next by thread: Re: QT & NSData
  • Index(es):
    • Date
    • Thread