MMS SDK
  

  

Visual Basic 6.0

This example shows how to create an MMS message with an image and video clip:

Dim objSimpleMessage As New MMSSimpleMessage
Dim objImage As MMSImageMediaElement
Dim objVideo As New XMSVideoFile

'
'Load our company logo
'
Set objSimpleMessage = New MMSSimpleMessage
Call objSimpleMessage.MediaElements.AddImage("c:\tmp\bsms.jpg")

objSimpleMessage.Subject = "Test"
objSimpleMessage.Sender = ""
objSimpleMessage.TransactionType = tt_m_retrieve_conf
objSimpleMessage.MessageClass = mc_Informational
objSimpleMessage.ShowSenderAddress = True
objSimpleMessage.Recipients.Add ""
objSimpleMessage.GenerateMMSMessage "c:\message.mms"

 

C#

This example shows how to send an image and video clip via MMS:

XMSAudioFile objAudio = new XMSAudioFileClass();
XMSAACCodec objAACCodec =
new XMSAACCodecClass();

// Load the source WAV file
objAudio.LoadFile(Source);

// Specify the target file
objAudio.AudioConverter.TargetFilename = Target;

// Specify properties for conversion to AAC
objAACCodec.AudioQuality = 2048;
objAACCodec.BitRate = XMSMediaEngineLib.enumXMSBitRate.bps_56000;
objAACCodec.NumberOfChannels = 2;
// Stereo
objAACCodec.SamplingFrequency = hz_44100;

// Begin the conversion
objAudio.AudioConverter.Start((XMSAudioCodec) objAACCodec);

 

© 2002-2007 Active busineSMS.com Software. All rights reserved.

Contact Home

MercuryXMS™ - MMS, SMS, WAP Push and EMS mobile messaging software Sitemap