WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old January 26th, 2006, 09:10 PM
CBQ CBQ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 36 CBQ User rank is Lance Corporal (50 - 100 Reputation Level)CBQ User rank is Lance Corporal (50 - 100 Reputation Level)CBQ User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 7 h 40 m 33 sec
Reputation Power: 4
WAP ringtones site -- completely lost

The good news: I created my first WAP site!

The bad news: the downloadable ringtone I added to it doesn't seem to work.


I used just a basic link to the midi, thought that would work.

The phone *played* the ringtone... and then nothing. How do I make it into a ringtone on the phone?

I've searched threads, but I'm mostly finding people whose file type didn't match their phone.

But if the phone couldn't handle the file type/file size/etc, then how was it able to play the music?


Admitedly, I'm designing a site for something I've never done myself. I've never downloaded a ringtone. Possibly there is a step on the user's side that I am just missing, newb that I am to this.


Here's my code:


Code:

<wml>
<card id="card2" title="Download Ringtone">
<p>
 <anchor>
Click Here to Download Your Ringtone!
  <go href="cs_mix32.mid">
 </anchor>
</p>
<p>
 <anchor>
  Previous Page
  <prev/>
 </anchor>
</p>

</card>

</wml> 



What am I doing wrong?

Anyone have any ideas?


Thanks, in advance, for your help.



Edited to add: The phone I'm trying this out on -- the phone I'd most like to get it to work on since it'll be the one I test stuff out on -- is a sprint lg vi5225

Reply With Quote
  #2  
Old January 26th, 2006, 09:17 PM
CBQ CBQ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 36 CBQ User rank is Lance Corporal (50 - 100 Reputation Level)CBQ User rank is Lance Corporal (50 - 100 Reputation Level)CBQ User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 7 h 40 m 33 sec
Reputation Power: 4
Okay, on a whim I thought perhaps it was the way I had the link structured, so I tried:

Code:
<wml>
<card id="card2" title="Download Ringtone">
<p>


  <A href="cs_mix32.mid">Click Here to Download Your Ringtone!</A>

</p>
<p>
 <anchor>
  Previous Page
  <prev/>
 </anchor>
</p>

</card>

</wml> 


....that didn't work either. It played the music, but I can't set it as a ringtone.

Reply With Quote
  #3  
Old January 27th, 2006, 04:23 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
This might be down to your airtime provider, the likes of Verizon, Bell Mobility and a few others in the US will not allow you to save content from outside their own 'walled garden'

The way around this would be to send the file as a .jpg email attachment then save the file and rename it is .mid - yes a pain in the proverbial but I have heard from some users that it often works.

Hope this helps.
__________________
Andy Moore << oh no it's got a blog.....
Word Press WAP Plugin with Ad Mob Advertising revenue
PHP developer
deploying ringtones, mp3 downloads and realtones
I'm a geek who's obsessed with stats and gadgets

Reply With Quote
  #4  
Old January 29th, 2006, 05:56 PM
CBQ CBQ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 36 CBQ User rank is Lance Corporal (50 - 100 Reputation Level)CBQ User rank is Lance Corporal (50 - 100 Reputation Level)CBQ User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 7 h 40 m 33 sec
Reputation Power: 4
Okay, I should start by saying that what I've done is not phenomenally sophisticated or universal. All I set out to do today is build a page that a Sprint phone could see, with a link to a ringtone that would download as one. It is basically the ringtone equivalent of a page that just says Hello World!

I am assuming that next week I'll be working on making this universal to all phones. I haven't tried it on anything but Sprint phones so far.


That said, here goes...



Here's a rough equivalent of the page I wrote:

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
<card id="card2" title="Download Ringtone">
<p>
 <a href="http://wap.mywebsite.com/music.gcd">
Ringtone 1!
 </a>
</p>
<p>
 <anchor>
  Previous Page
  <prev/>
 </anchor>
</p>

</card>

</wml> 



I then saved it as "next.wml" (I had an opening page as well, just for show).


The key here is in the link. You apparently can't just link to the midi file and get it to work. You have to link to a page that tells the cellphone what this midi file is, or the link will just make the file play, not download.

So, the next thing you need to do is build the file you link to above. Here's roughly what mine looks like:

Code:
Content-Type: audio/midi
Content-Name: My Ringtones
Content-Version: 1.0
Content-Vendor: Me
Content-URL: http://wap.mywebsite.com/csmix32.mid
Content-Size: 916


I then saved the file as "music.gcd" One of the most important things here is the "Content-Size" variable. You have to include the exact size of the midi file here.


Finally, you also have to add a line to your .htaccess file. If you already have a ".htaccess" file in the place where you are uploading all this, then add this line to it:

Code:
AddType text/x-pcs-gcd gcd



If you don't have a .htaccess file where you are uploading all this, then create a new file with the above line, followed by one carriage return, and save it as ".htacess"



Upload all three files ("next.wml", "music.gcd", ".htaccess") to your host/server.
Comments on this post
andymoo agrees: Handy, well written and understandable guide on how to do something I've wanted to be able to do for
a while! More like this please,,,,,,
jabba_29 agrees!

Reply With Quote
  #5  
Old January 29th, 2006, 06:08 PM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
excellent, thank you! i've wondered for some time about how you'd deploy content to sprint pcs users and you seem to know the answer. appreciated.

any ideas on how you'd deploy tones to a verizon user?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > WAP ringtones site -- completely lost


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway