SMIL and MM7 | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through October 29, 2003 ⬆ |
◄ ► |
Author | Message | ||||
Craig Walker Unregistered guest |
There's quite a lot of high-level stuff on the web about MMS and MM7, but very little about the technical details of MM7. My main issue at the moment is getting an SMIL document working through the NowSMS MM7 interface. The example you give in your documentation for using MM7 is good, however it doesn't contain an SMIL component (which you suggest would be a good idea :-)). Could someone please provide a full MM7 example with an SMIL document as one of the components? Thanks in advance. | ||||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 985 Registered: 10-2002 |
Craig, Do you need help with the SMIL itself, or just how to include it in the MM7 request? If you take the example at: http://www.nowsms.com/documentation/ProductDocumentation/mms_notifications_and_c ontent/Submitting_MMS_Messages_MM7.htm To add a SMIL file, you would insert this as an additional MIME part in the inner most MIME multipart segment (for example, before "--StoryParts-74526-8432-2002-77645--", which closes the inner most MIME multipart segment). --StoryParts-74526-8432-2002-77645 Content-Type: application/smil Content-ID: <test.smil> <smil> ... </smil> Then ... you don't have to for NowSMS, but you should for other MM7 services, modify the "Content-Type" header for the MMS data part, so that it is "multipart/related" instead of "multipart/mixed", with a "start=" parameter pointing to the "Content-ID:" of the SMIL part. In other words, Content-Type: multipart/mixed; boundary="StoryParts-74526-8432-2002-77645" becomes Content-Type: multipart/related; boundary="StoryParts-74526-8432-2002-77645"; start=<test.smil> Does that help? | ||||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 986 Registered: 10-2002 |
Maybe this will help a little more ... it was a simple example that I generated by having a phone send an MMS message into NowSMS, with NowSMS configured to forward to the recipient via MM7.
There's no good reason that the SMIL has to be encoded using "quoted-printable" encoding. (Change the "=3D" to "=" and remove the "Content-transfer-encoding: quoted-printable" header, and you'd be just fine ... you'd just have to adjust the "Content-length:" header appropriately.) POST /mm7 HTTP/1.0 Host: 127.0.0.3:8080 SOAPAction: "" Content-length: 2131 Content-type: multipart/related; boundary="---mime-boundary-B076E19F.B217F560---" Connection: close -----mime-boundary-B076E19F.B217F560--- Content-type: text/xml; charset=utf-8 <?xml version='1.0' ?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header> <mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0" env:mustUnderstand="1"> 20031028/11/C72C9123@nowsms.no-ip.com </mm7:TransactionID> </env:Header> <env:Body> <mm7:SubmitReq xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0"> <MM7Version>5.3.0</MM7Version> <SenderIdentification> <SenderAddress>+44999999999/TYPE=PLMN</SenderAddress> </SenderIdentification> <Recipients> <To><Number>+9999999</Number></To> </Recipients> <Priority>Normal</Priority> <DeliveryReport>True</DeliveryReport> <ReadReply>False</ReadReply> <Subject>Multimedia Message</Subject> <Content href="cid:mms_cid" /> </mm7:SubmitReq> </env:Body> </env:Envelope> -----mime-boundary-B076E19F.B217F560--- Content-type: multipart/related; start=<2004161650>; type=application/smil; boundary="---mime-boundary-93D4E3E1.71BD3D22---" Content-ID: <mms_cid> -----mime-boundary-93D4E3E1.71BD3D22--- Content-type: text/plain; name="Quick_te.txt" Content-location: Quick_te.txt Content-transfer-encoding: quoted-printable Quick test -----mime-boundary-93D4E3E1.71BD3D22--- Content-type: application/smil; charset=utf-8; name="pres.smil" Content-ID: <2004161650> Content-transfer-encoding: quoted-printable <smil xmlns=3D"http://www.w3.org/2000/SMIL20/CR/Language"> <head> <layout> <root-layout height=3D"208" width=3D"176" /> <region id=3D"Text" height=3D"100%" width=3D"100%" left=3D"0%" top=3D"0%" fit=3D"s= croll" /> </layout> </head> <body> <par dur=3D"20000ms"> <text src=3D"Quick_te.txt" region=3D"Text" /> </par> </body> </smil> -----mime-boundary-93D4E3E1.71BD3D22----- -----mime-boundary-B076E19F.B217F560----- |