SMIL file is not created when sending MMS.

Login to reply to this topic.
Thu, 2006-08-17 10:15
Joined: 2005-08-19
Forum posts: 11
I don't know why my MMS doesn't have SMIL file in attachment when I create MMS. Could anyone tell me? Also in MMSExample, they don't have SMIL file in attachment as well.

Thu, 2006-08-17 11:31
Joined: 2006-05-05
Forum posts: 43
Re: SMIL file is not created when sending MMS.

hi Peera

   I think u r using CreateAttachmentL () method to create the attachment. This is not referenced by by the SMILE part.So try to use CreateAttchment2L rather than that one.As I used this and it was working nicely for me.Hope same for u.

Thanks
Fri, 2006-08-18 04:08
Joined: 2005-08-19
Forum posts: 11
Re: SMIL file is not created when sending MMS.
I called CreateAttachment2L() and then SaveMessageL(), but it's still not working for me. It sent only the attachment(text, jpg, sound)  and the smil file is not created. What's wrong?
Fri, 2006-08-18 06:06
Joined: 2006-05-05
Forum posts: 43
Re: SMIL file is not created when sending MMS.
Hi Peera

  Like this I cann't tell u the reason but what can I do only is that I m giving u  mine code as I told u its working for me.


   TMsvId attachmentId = KMsvNullIndexEntryId;

   ptrMmsMtm->CreateTextAttachmentL(attachmentId,KMsgBody,KTextfFileName);
   ptrMmsMtm->CreateAttachment2L(attachmentId, KAttachmentImageFilename);
   
   ptrMmsMtm->SetMessageRootL(attachmentId);

   indexEntry.SetReadOnly(ETrue);
   ptrMmsMtm->SaveMessageL();

   indexEntry.SetInPreparation(EFalse);
   indexEntry.SetVisible(ETrue);

   ptrMmsMtm->Entry().ChangeL(indexEntry); //commit changes


Hope so it'll help u .Try this one

Thanks
Fri, 2006-08-18 08:43
Joined: 2005-08-19
Forum posts: 11
Re: SMIL file is not created when sending MMS.
Hi catchbubbles!

         Thank you very much for your help. I've tried your code but there's no smil file created in attachment.
Fri, 2006-08-18 10:38
Joined: 2006-05-05
Forum posts: 43
Re: SMIL file is not created when sending MMS.
hey r u able to create ur message with attachment except Smile?Also u can create ur own Smile in the same way in which u create ur other attachments.

And if u get the reason then let me knw also.I also want to knw.

Thanks.
Wed, 2006-08-23 10:44
Joined: 2005-08-19
Forum posts: 11
Re: SMIL file is not created when sending MMS.
Now I can create attachments but not a smil file and send, but why the size of the attachments is still the same(not like messaging app which reduces the file size).

Thanks...
Thu, 2006-08-31 12:49
Joined: 2006-03-21
Forum posts: 8
Re: SMIL file is not created when sending MMS.
hi peera,

I was facing the same problem. Try to create Smil attachment as text. So, you will use iMmsClient->CreateTextAttachment(smilId, smilBodyTxt) instead of CreateAttachment2L(), then set the smil attachment as message root: iMmsClient->SetMessageRoot(smilId). Finally, set its type to "application/smil": iMmsClient->SetAttachmentType(smilId, KSmilAppType). Don't forget to SaveMessageL() after you finish creating message.

At least, this solution works for me  Cool

Regards,

Halim

I'm Java(nese). I live in Java. I speak Java. But I don't write my code in Java.

Mon, 2006-09-04 13:13
Joined: 2006-05-05
Forum posts: 43
Re: SMIL file is not created when sending MMS.
Hi halimz

    Hey can you pls tell me how r u creating your Smile file .Are you creating it manually by using the CreateTextAttachment.

  As I think this is an alternative.But messaging Api provides a Smile file by default .And I think this we can get by using the CreateAttachment2L();

  Pls do correct me if something is wrong.Also pls let me know  how messaging Api reduce the size of Attachments and how much as I have no idea about  this .I want to test my app again to keep this point in mind.

Thanks.
Thu, 2006-09-28 07:09
Joined: 2004-09-06
Forum posts: 235
Re: SMIL file is not created when sending MMS.
Ofcourse you have to write your own SMIL file and attach it manually. SMIL file provides instructions about how to present the other media objects in that message. Here's a link,

http://www.symbian.com/developer/techlib/v70sdocs/doc_source/devguides/cpp/Messaging/MMS/format.html

The default MMS composer uses image/ video compression internally to reduce the size of MMS, as the maximum size of MMS in MMS 1.0 can be upto 100 KB and in MMS 2.0 the limit is 300KB.
you'll have to explicitly do image/video compression. Take a look at CImageEncoder/CImageDecoder.

Vink
Fri, 2006-09-29 12:32
Joined: 2006-05-05
Forum posts: 43
Re: SMIL file is not created when sending MMS.
Thanx for your reply

    Can you pls tell me one thing more that ? The Smile file which is createdby default.As described in "Developing Series 60" that

"Using CreateAttachment2L ensures that the image will be referenced in message's SMILE part and included as a visible part of the presentation received by the addressee. Using CreateAttachmentL() will result in a binary attachment which is not referenced by the SMILE part"

Now here I have some doubts .What I am interpreting with these lines that its a provision provided by MTM that we can create our own SMILE file rather then using that one which is created by MTM.

If I am right here then it means one should get default SMILE
by using CreateAttachment2L.

Pls do correct me if I am wrong here as I want to do clear my confusion.

Thanks.
I'll be greatefull for your s response.

  • Login to reply to this topic.