|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
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 |
|
#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. |
|
#5
|
||||
|
||||
|
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? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > WAP ringtones site -- completely lost |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|