hellkvist.org Forum Index hellkvist.org
Discussions about the free software on hellkvist.org
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to encode text message into a mms file

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur
View previous topic :: View next topic  
Author Message
helpme
Guest





PostPosted: Mon Aug 23, 2004 3:46 am    Post subject: how to encode text message into a mms file Reply with quote

addPart("text/plain","test.txt")

no work
Back to top
Guest






PostPosted: Mon Aug 23, 2004 9:22 am    Post subject: Reply with quote

Why doesn't it work? Where does it fail? You have to give more information. Does it fail when you encode? Does it fail when you decode or when a phone decodes it? Without any information there is nothing I can help you with. Then my guess is that it was the wrong alignment of the planets that caused the problem. The well formulated "no work" is a bit too non-descriptive I'm afraid Smile
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Mon Aug 23, 2004 9:23 am    Post subject: Reply with quote

Yes, give some more information, please. Any error messages?
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Tue Aug 24, 2004 8:24 am    Post subject: Reply with quote

$enc = new MMSEncoder();

// Add as many parts you like (phone will put size limitations on the message though)
$enc->addPart( "audio/midi","test.mid");
$enc->addPart( "image/gif","test.gif");
$enc->addPart( "text/plain","test.txt");

// Encode and write the message to a file
$mmsfilename = time().rand(1, 1000);
$enc->writeToFile("/var/work/mms/".$mmsfilename.".mms");

when phone(Nokia6600) gets this mms, it can't display text on the screen,just image and audio.
when Samsung phone gets it, it report it is not a complete mms.
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Tue Aug 24, 2004 9:32 am    Post subject: Reply with quote

Well, the encoding in mmslib is in very early stage so there are probably bugs. It's only been tested with a SonyEricsson T610 so it's possible that it is simply doing something wrong.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group