How to set the Mid to be autoplay using the URL POST method? | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through July 14, 2004 ⬆ |
◄ ► |
Author | Message | |||
Verdi Yau New member Username: Verdi Post Number: 5 Registered: 03-2004 |
How can i set the Mid to be autoplay using the URL POST method? with this http://127.0.0.1:8800/?.....&MMSFile=http://www.nowsms.com/media/song.mid I can only download it, but not auto open by the mobile, wht parameter can i user instead of "&MMSFILE=" ? | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2181 Registered: 10-2002 |
Well, we don't have a file named "/media/song.mid" on the NowSMS web site, so that could be a problem. Assuming that your URL was just an example, and that you do have "/media/song.mid" on one of your web servers ... then ... You need to add a SMIL file ... for example, put the following content into a file named song.smil, and store it so it is accessible via a URL request: <smil> <body> <par> <audio src="song.mid"/> </par> </body> </smil> Then modify your HTTP request to include two MMSFILE parameters, one to find "song.mid", and the other to find "song.smil". -bn | |||
Verdi Yau New member Username: Verdi Post Number: 6 Registered: 03-2004 |
can i do like this? coz i wanna to do with different text each time~ http://127.0.0.1:8800/?.....&MMSText=Hi&MMSFile=.........picture.gif&MMSFile=htt p://........song.smil&MMSFile=http://.......song.mid I do it, but i can't open the text and gif only the song is a/o play I really need to do like this~ coz i need to send dynamic text each time~ but i can't create Smil file each time to include the text~ plz help me~ THX alot! | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2196 Registered: 10-2002 |
To include the image, just add: <img src="picture.gif"/> ... below the audio reference. Unfortunately, for the text, the only way to include it in the SMIL automatically is to include a text file as an MMSFILE reference. Then, assuming the text file is named TEXT.TXT, include this in the SMIL: <text src="text.txt"/> Unfortunately, you cannot just use the "MMSTEXT=" parameter, because that generates a dynamically created filename for the text part. Perhaps in a future version, we should have an option to automatically create a simple SMIL wrapper. But this is how you would do it today. |