×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    smil error in 7650

    After reading other posts, i gathered that Nokia 7650 can handle smil partly. That is, smil presentation/slideshow is not supported but the layout and order are rendered properly. I have examined most of the smil posted here and come up with my own smil - I assume my smil that follows is correct.

    <smil xmlns="http://www.w3.org/2000/SMIL20/CR/Language">
    <head>
    <layout>
    <root-layout width="101" height="80"/>
    <region id="Image" top="0" left="0" width="101" height="80"/>
    <region id="Text" top="0" left="0" width="101" height="80"/>
    </layout>
    </head>
    <body>
    <par dur="6000ms">
    <text src="cid:msg0.txt" region="Text" />
    </par>
    <par dur="5000ms">
    <text src="cid:msg1.txt" region="Text" />
    </par>
    <par dur="3000ms">
    <text src="cid:msg2.txt" region="Text" />
    </par>
    <par dur="13000ms">
    <img src="cid:mms-welcome.gif" region="Image" />
    </par>
    </body>
    </smil>


    and i also tried this

    <smil xmlns="http://www.w3.org/2000/SMIL20/CR/Language">
    <head>
    <layout>
    <root-layout width="101" height="80"/>
    <region id="Image" top="0" left="0" width="101" height="80"/>
    <region id="Text" top="0" left="0" width="101" height="80"/>
    </layout>
    </head>
    <body>
    <par dur="6000ms">
    <text src="msg0.txt" region="Text" />
    </par>
    <par dur="5000ms">
    <text src="msg1.txt" region="Text" />
    </par>
    <par dur="3000ms">
    <text src="msg2.txt" region="Text" />
    </par>
    <par dur="13000ms">
    <img src="mms-welcome.gif" region="Image" />
    </par>
    </body>
    </smil>

    Then I sent an MMS message from my application to my 7650 using the above smil. I was expecting to receive one whole message body. However, I got the error "Unable to display message: Select objects in Options menu for details." and I had to open the objects one by one to view them. Most people here have also encountered the same error. I thought 7650 handles smil partly, what could be wrong with my smil? I tried sending this to t68 and it worked fine.

    Then I tried removing the smil part altogether and voila i did not get any error! I received one whole message.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    474

    RE: smil error in 7650

    Well, both SMILs seem to be fine. Do you understand the difference between using the "cid:" and not using it?

    Are you using MMS Java Library? We really need some more information to be able to tell you anything.

    If using our Java library, please also include some relevant lines from your code -- how have you set the content-type of the message? How about setting the Content-Id / Content-Location for the various parts?

    -paul / ForumNokia

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    RE: smil error in 7650

    Try removing the namespace declaration from the <smil> element; e.g., use just <smil>, not <smil xmlns="http://www.w3.org/2000/SMIL20/CR/Language">. We've found the 7650 to be very particular about the format of the SMIL part.

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    RE: smil error in 7650

    i dont use Nokia Java MMS Library, I only use JavaMail API to create a MimeMessage.


    =====================================================
    Properties props = System.getProperties();
    Session session = Session.getInstance(props, null);
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress("09171234567/TYPE=PLMN&quot);
    message.addRecipient(Message.RecipientType.TO, new InternetAddress("09179876541/TYPE=PLMN&quot);
    message.setSubject("Digital Postcard"

    // Create a Multipart
    MimeMultipart multipart = new MimeMultipart();
    multipart.setSubType("related"

    // Create message part 0 - smil
    StringBuffer smil = new StringBuffer(512);
    smil.append("<smil>&quot.append(newLine);
    smil.append("<head>&quot.append(newLine);
    smil.append("<layout>&quot.append(newLine);
    smil.append("<root-layout/>&quot.append(newLine);
    smil.append("<region id=\"Image\" top=\"0\" left=\"0\" height=\"80\" width=\"101\"/>&quot.append(newLine);
    smil.append("<region id=\"Text\" top=\"0\" left=\"0\" height=\"80\" width=\"101\"/>&quot.append(newLine);
    smil.append("</layout>&quot.append(newLine);
    smil.append("</head>&quot.append(newLine);
    smil.append("<body>&quot.append(newLine);
    smil.append("<par dur=\"5000ms\">&quot.append(newLine);
    smil.append("<img src=\"cid:imgID1\" region=\"Image\"></img>&quot.append(newLine);
    smil.append("</par>&quot.append(newLine);
    smil.append("<par dur=\"5000ms\">&quot.append(newLine);
    smil.append("<text src=\"cid:txtID1\" region=\"Text\"></text>&quot.append(newLine);
    smil.append("</par>&quot.append(newLine);
    smil.append("</body>&quot.append(newLine);
    smil.append("</smil>&quot.append(newLine);

    BodyPart messageBodyPart0;
    messageBodyPart0 = new MimeBodyPart();
    messageBodyPart0.setText(smil.toString());
    messageBodyPart0.setHeader("Content-Type", "application/smil;charset=utf-8"
    messageBodyPart0.setHeader("Content-ID", "<mms.smil>"
    messageBodyPart0.setHeader("Content-Transfer-Encoding", "base64"
    multipart.addBodyPart(messageBodyPart0); // IF THIS PART IS REMOVED, MESSAGE HAS NO ERROR WHEN SENT TO 7650

    BodyPart messageBodyPart1;
    messageBodyPart1 = new MimeBodyPart();
    messageBodyPart1.setDataHandler(new DataHandler(new FileDataSource("img1.gif&quot));
    messageBodyPart1.setHeader("Content-ID", "<imgID1>"
    messageBodyPart1.setHeader("Content-Transfer-Encoding", "binary"
    multipart.addBodyPart(messageBodyPart1);

    BodyPart messageBodyPart2;
    messageBodyPart2 = new MimeBodyPart();
    messageBodyPart2.setText("test text"
    messageBodyPart2.setHeader("Content-ID", "<txtID1>"
    multipart.addBodyPart(messageBodyPart2);

    // Set content of MIME
    message.setContent(multipart);
    message.addHeader("Content-Type",multipart.getContentType() + ";type=application/smil;start=<mms.smil>"

    // send MimeMessage to MMSC using Ericsson API

    =====================================================

    The above code works well with Ericsson phones but not with Nokia7650.
    However when I comment out the part that adds smil bodypart, there would be no error with the message when sent to 7650.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×