ok iphone h4ckers, quiz time....

topic posted Fri, May 9, 2008 - 2:39 AM by  offlineAlexXx
Share/Save/Bookmark
Advertisement
haha bet that got your attention... anyway I do have a question:

So I decided to create a web page where I would put up some iphone ringtones I made, and make them available for free download!

In accordance with instructions I read online, I encoded my audio segments (which must be less than 31 seconds long) as m4a files using itunes - then copied the folder containing the m4a files onto my desktop and changed the suffixes of the ringtones to m4r.

(I discovered it is essential to duplicate the folder where the m4a files were and rename / reimport the duplicated m4a files NOT the originals, otherwise it will not work.)

Once this is done, the ringtones themselves work fine: I dragged them back into the itunes "ringtones" area and hit "sync" - and they upload and work fine in the iphone.

So I uploaded the ringtones to my website. However, when I option-click on the ringtone to download it... instead of downloading it as an m4r file, it downloads it as an "m4r.txt" file.

I can change the suffix back to m4r and all is good - but it would be great for my site's viewers not to have to go through all this.

How do I get them to download as m4r files? Any takers?

Also, superstyling bonus question... is there a way to get them to download straight to itunes?

My ringtone site is kinda silly / fun but it has 27 free cool bleepy electronic music ringtones sitting there for any iphone user who wants them: www.outerspaceringtones.com

**

Next projects will be to create "flash rollover" instant auditioning - courtesy of the awesome www.beathive.com/playbutton

Then to see if I can figure out how to make the ringtones available to users of other types of phone.....

A.
:)
posted by:
AlexXx
SF Bay Area
Advertisement
Advertisement
  • Re: ok iphone h4ckers, quiz time....

    Fri, May 9, 2008 - 3:12 PM
    The problem is that the server doesn't recognize the mime type for m4r. You'd need to configure your server or have your admin configure your server to recognize them. Otherwise, the server is defaulting to text as the mime type and then they're getting the .txt extension.

    If you don't configure your server properly, you'll want to zip the files. Not all browsers and operating systems are going to like false mime types and extensions.

    Once your server is configured properly, the files will download into iTunes *if* things are also configured properly on the client. Most people don't download .m4r files so it's unlikely they've already configured this. It's different for each combo of browser and OS. There's nothing you can do on the file or server side other than to make sure you're delivering the proper extension and mime type.

    Also of note is that ringtones can be much longer than 30 seconds if you hack your iPhone and ftp the files to the iPhone. The nice thing about really long ringtones is that they can also be used for alarms. It can be nice to listen to a full song when you wake up in the morning, especially one that you edit so it fades up over a period of time.
    • Re: ok iphone h4ckers, quiz time....

      Fri, May 9, 2008 - 6:03 PM
      AWESOME answer, thanks!

      I also posted this thread over on the web design tribe
      web-design.tribe.net/thread/...29c8d1c9

      Your answer goes into more depth... ok so I can put in a call to hostgator and straighten things out server-side.... however, how do you configure things client side? Is this a browser preference? I could theoretically post some instructions on my site so that people are covered either way... once I've figured it out.

      I'm surprised that apple doesn't simply allow the selection of tracks from the music library as ringtones. Perhaps there's a reason for this to do with selling ringtones? If this was the case, I would imagine that the ability to create ringtones from itunes might suddenly disappear.... ?

      AN
      • Re: ok iphone h4ckers, quiz time....

        Sat, May 10, 2008 - 3:11 AM
        Server-side problem is now fixed! I contacted my web host (hostgator) with a support ticket and asked them to set the mime type for m4r.

        This was the response:

        >Hello,
        >I added to your .htaccess file this line:
        >AddType application/octet-stream m4r
        >This will cause browsers to download the file by default. Let us know if you have any issues with it.
        >If there is anything else we can help you with do not hesitate to ask.

        Have done some more work on www.outerspaceringtones.com this evening. All 27 ringtones are now available for free download for iPhone users. I encoded the ringtones at 256k so they are sounding good! :)

        Also have embedded the flash rollover instant auditioning - but this is not working in all browsers yet: It works in Firefox but not in Safari.

        And just created full instructions for anyone new to importing ringtones to the iphone...

        Hostgator are awesome. I have never had a single problem with them and their support has always been as good as it gets.

        Many thanks for the help!

        AN
        • Re: ok iphone h4ckers, quiz time....

          Sat, May 10, 2008 - 3:29 PM
          i thought ringtones could only be 40 seconds long....i've just been editing songs and making them into AAC format, then using MakeiPhoneringtone, it put the file directly into iTunes ringtone directory for me.

          Dangermouse theme song fits perfectly

Recent topics in "iPhone"

Topic Author Replies Last Post
Study Paints iPhone Users As Porn-Watching Egomaniacs Alan 1 November 6, 2009
There's a Map for That Bruce 4 November 5, 2009
Dumb question time 2 November 2, 2009
Costume - There's an app for that Bruce 2 November 1, 2009