How to set the Mid to be autoplay using the URL POST method?

How to set the Mid to be autoplay using the URL POST method? SearchSearch
Author Message
Verdi Yau
New member
Username: Verdi

Post Number: 5
Registered: 03-2004
Posted on Friday, March 19, 2004 - 05:02 am:   

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
Posted on Friday, March 19, 2004 - 08:19 pm:   

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
Posted on Saturday, March 20, 2004 - 12:25 pm:   

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
Posted on Monday, March 22, 2004 - 06:14 pm:   

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.