Package net.sf.fmj.ui.wizards

Source Code of net.sf.fmj.ui.wizards.Main

package net.sf.fmj.ui.wizards;

import javax.media.format.AudioFormat;


/**
*
* @author Ken Larson
*
*/
public class Main {
   
    public static void main(String[] args) {
       
      RTPTransmitWizardConfig config = new RTPTransmitWizardConfig();
    // set defaults:
    config.url = "file://samplemedia/gulp2.wav";
    config.trackConfigs = new TrackConfig[] {new TrackConfig(true, new AudioFormat(AudioFormat.ULAW_RTP, 8000.0, 8, 1, AudioFormat.LITTLE_ENDIAN, AudioFormat.SIGNED))};
//    try
//    {
      config.destUrl = "rtp://192.168.1.4:8000/audio/16";//RTPUrlParser.parse("rtp://192.168.1.4:8000/audio/16");
//    } catch (RTPUrlParserException e)
//    {
//      throw new RuntimeException(e);
//    }
   
        new RTPTransmitWizard(null, config).run();
       
    }
   
}
TOP

Related Classes of net.sf.fmj.ui.wizards.Main

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.