Sunday, January 17, 2016
How to send MMS mm7 with smil file
MMS
mm7 how to send files with smil
My code is as follows:
MMContent presentation = MMContent.createFromBytes (smile.getBytes ("UTF-8"));
presentation.setContentType ("application / smil");
presentation.setContentID ("sm.smil");
MMContent maincontent = new MMContent ();
//maincontent.setPresentionContent(presentation);
maincontent.setContentID ("main");
maincontent.setContentType (MMConstants.ContentType.MULTIPART_RELATED);
maincontent.addSubContent (presentation);
//content.setPresentionContent(presentation);
//presentation.setPresentionContent(presentation);
//content.addSubContent(sub);
Iterator itsub = allSub.iterator ();
while (itsub.hasNext ()) {
maincontent.addSubContent ((MMContent) itsub.next ());
}
submit.setContent (maincontent);
Phone received MMS or mixed mode;
If correct, then it should be displayed first 4 seconds and then displays the next image of ah;
Please answer master
Reply:
Determine the phone supports it
Reply:
In MM7 source, the search a bit, MMContentType is the following code:
public static final MMContentType TEXT = (new MMContentType ("text / plain")) lock ();.
public static final MMContentType XML = (new MMContentType ("text / xml")) lock ();.
public static final MMContentType SMIL = (new MMContentType ("application / smil")) lock ();.
public static final MMContentType AMR = (new MMContentType ("audio / amr")) lock ();.
public static final MMContentType MIDI = (new MMContentType ("audio / midi")) lock ();.
public static final MMContentType I_MELODY = (new MMContentType ("text / i-melody")) lock ();.
public static final MMContentType E_MELODY = (new MMContentType ("text / e-melody")) lock ();.
. public static final MMContentType GIF = (new MMContentType ("image / gif")) lock ();
public static final MMContentType JPEG = (new MMContentType ("image / jpeg")) lock ();.
. public static final MMContentType WBMP = (new MMContentType ("image / vnd.wap.wbmp")) lock ();
public static final MMContentType PNG = (new MMContentType ("image / png")) lock ();.
public static final MMContentType MMF = (new MMContentType ("application / x-smaf")) lock ();.
. public static final MMContentType WAV = (new MMContentType ("audio / wav")) lock ();
public static final MMContentType VIDEO_3GPP = (new MMContentType ("video / 3gpp")) lock ();.
. public static final MMContentType VIDEO_MP4 = (new MMContentType ("video / mp4")) lock ();
public static final MMContentType VIDEO_MPEG = (new MMContentType ("video / mpeg")) lock ();.
public static final MMContentType MULTIPART_RELATED = (new MMContentType ("multipart / related; start = & lt; START & gt;")). lock ();
. public static final MMContentType MULTIPART_MIXED = (new MMContentType ("multipart / mixed")) lock ();
public static final MMContentType WAP_MULTIPART_MIXED = (new MMContentType ("application / vnd.wap.multipart.mixed")) lock ();.
public static final MMContentType WAP_MULTIPART_RELATED = (new MMContentType ("application / vnd.wap.multipart.related; start = & lt; START & gt;")). lock ();
It seems to be a Type oh no smil
Reply:
Halo, yes ,, did not see, I am sorry.
Reply:
Well, collectibles
Reply:
I have done a similar project using java to do. Now we are experiencing a multimedia file parsing issues.
Nokia's proposed landlord can go to the official website to see. There will be a windfall.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment