Sending Image and Text in one slide

Sending Image and Text in one slide SearchSearch
Author Message
Imran Hussain
New member
Username: Way2imran

Post Number: 1
Registered: 07-2009
Posted on Tuesday, July 28, 2009 - 02:01 pm:   

Hi,

I am using a trial version of Now SMS. I have a MM7 account with my telco MMSC. I have configured MMSC Routing and i can send successfully MMS using Web page provided by Now SMS and using command line.

My problem is that wherenever i send MMS with text and image using any interface (Web or Command line) it always goes in 2 slides. I want to send text and image in one slide as my image is of a small size. Thats why there is alot of empty space below the image and there are chances that user will not scroll down if he doesnt see anything below the image.

I want text to be displayed just below the image, not in second slide.

I would really appreciate your help.

Regards

Imran
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1082
Registered: 08-2008
Posted on Tuesday, July 28, 2009 - 07:55 pm:   

Hi Imran,

If you don't generate your own SMIL when submitting a message, then NowSMS automatically generates SMIL for you.

SMIL is the presentation markup language that is used within MMS messages.

For the widest compatibility, the default SMIL that NowSMS generates has one object per page.

It is easy to override this by generating your own SMIL. You then include this SMIL as one of the content objects in your MMS message. (Be sure to give the file a ".smil" file extension, so that NowSMS will recognise it as such.)

Our default SMIL for a text and image file is going to look something like this:

<smil>
<head>
<layout>
<region id="Image" height="100%" width="100%" fit="meet"/>
<region id="Text" height="100%" width="100%" fit="scroll"/>
</layout>
</head>
<body>
<par dur="3s">
<text src="filename.txt" region="Text"/>
</par>
<par dur="5s">
<img src="image.jpg" region="Image"/>
</par>
</body>
</smil>

To have them image and text display on a single page, you could do make this change:

<smil>
<head>
<layout>
<region id="Image" height="100%" width="100%" fit="meet"/>
<region id="Text" height="100%" width="100%" fit="scroll"/>
</layout>
</head>
<body>
<par dur="5s">
<text src="filename.txt" region="Text"/>
<img src="image.jpg" region="Image"/>
</par>
</body>
</smil>

You'd probably want to change the "%" of height for the text and image regions for best results, but a lot of MMS clients will ignore it.

Just include this SMIL as one of the content files in your MMS message, and be sure to use a ".smil" file extension (e.g., "filename.smil").

--
Des
NowSMS Support