MMS doesnt display properly when using SMIL

MMS doesnt display properly when using SMIL SearchSearch

SMS & MMS Technical Forum » MMS & SMS Technical Discussions (unsupported) » MMS doesnt display properly when using SMIL « Previous || Next »
Author Message
sricv
New member
Username: Sricv

Post Number: 1
Registered: 06-2015
Posted on Friday, June 05, 2015 - 11:23 am:   

I am using NowSMS free trial version to test MM7 request.
I am using my android phone as the modem.
When I send a test MMS with just one image and subject it delivers fine and my handset displays it without any issues.

If I add more than one image or text, only the first one displays.
The documentation suggests that a default smil is generated to display one entry per page and default timing is 5s for image and 3s for text. That doesnt seem to happen.
Am i missing something?

I attempted to add a smil myself, in which case nothing is displayed.
Not even the first image.
Please help.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5313
Registered: 08-2008
Posted on Friday, June 05, 2015 - 05:55 pm:   

Hi,

It sounds like a MIME encoding issue.

Most likely, the multipart encoding is incorrect.

At least without seeing the actual submission, this would be my best guess.

The “Content-type:” header in the POST should be one of the “multipart” types (usually “multipart/related”), and should include a “boundary=” parameter that delimits the different parts of the message.

The first part of the multipart message is expected to be the XML for the MM7 request, and we’re going to expect to see a <Recipients> section with at least one <To>, <Cc> or <Bcc> recipient specified.

The second part of the multipart message is expected to be the content for the MMS message, and this in turn will usually be another nested MIME multipart structure.

If this second part is not a multipart object, you'd get the behavior you describe.

It is hard to explain, but look at the example here: http://www.nowsms.com/doc/submitting-mms-messages/mm7

The POST is multipart/related, note its boundary "NextPart".

The first part is the MM7 XML.

The second part is another multipart object, which has its own boundary "StoryPart", and all of the MMS content are objects in this nested multipart object.

--
Des
NowSMS Support
sricv
New member
Username: Sricv

Post Number: 2
Registered: 06-2015
Posted on Monday, June 08, 2015 - 05:38 am:   

Thank you very much Des for the response.
I made some changes to include a nested MIME structure. Now I get both the files included (jpg and text) but on different pages.
I have tried including a smil file, but that doesnt seem to be getting picked.
I am attaching the MMS request sample. Could you please check and let me know if I am missing anything.

text/plain
mms.txt (30.1 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5316
Registered: 08-2008
Posted on Monday, June 08, 2015 - 02:06 pm:   

Hi,

Do you have the start parameter for the HTTP Content-Type header:

Content-Type: multipart/related; boundary="NextPart_000_0028_01C19839.84698430"; type=text/xml; start="</tnn-200102/mm7-submit>"

Add a Content-ID: header to the SMIL part that matches this start parameter.

Other than that, I'd remove the <?xml from the SMIL file, and lose the extra </smil>

That said, what is the receiving device? Many modern devices ignore SMIL completely.

--
Des
NowSMS Support

Add Your Message Here, or click here to create a new discussion topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Click here to create an account.
Username:
Password:
Options: Automatically activate URLs in message
Action:

Login Login / Register Logout Logout Search Last 30 Days Topics Topics