Package javax.media.protocol

Examples of javax.media.protocol.FileTypeDescriptor


     // TODO: if we aren't performing any transcoding, just serve the file up directly.
     // TODO: capture sources need to be treated as singletons, with some kind of broadcasting/cloning to ensure
     // that multiple connections can be made.
    
     final String serverSideUrlStr = mediaPath; //URLUtils.createUrlStr(new File(mediaPath)); // TODO: enforce that we can't just serve up anything anywhere
     final ContentDescriptor outputContentDescriptor = new FileTypeDescriptor(ContentDescriptor.mimeTypeToPackageName(mimeType));
   
    final Format outputFormat;
    if (outputFormatStr == null)
    {  outputFormat = null;
    }
View Full Code Here


    System.err.println("Error configuring output processor");
    buttonGo.setEnabled(true);
    return;
      }

      p.setContentDescriptor(new FileTypeDescriptor(FileTypeDescriptor.QUICKTIME));
      success = waitForState(p, Processor.Realized);
      if (!success) {
    System.err.println("Could not realize output processor");
    buttonGo.setEnabled(true);
      }
View Full Code Here

    prefs.rtpTransmitWizardConfig.url = "file://samplemedia/gulp2.wav";
    prefs.rtpTransmitWizardConfig.trackConfigs = new TrackConfig[] {new TrackConfig(true, new AudioFormat(AudioFormat.ULAW_RTP, 8000.0, 8, 1, AudioFormat.LITTLE_ENDIAN, AudioFormat.SIGNED))};
    prefs.rtpTransmitWizardConfig.destUrl = "rtp://192.168.1.4:8000/audio/16"; //RTPUrlParser.parse("rtp://192.168.1.4:8000/audio/16");

    prefs.transcodeWizardConfig.url = "file://samplemedia/gulp2.wav";
    prefs.transcodeWizardConfig.contentDescriptor = new FileTypeDescriptor(FileTypeDescriptor.WAVE);
    prefs.transcodeWizardConfig.trackConfigs = new TrackConfig[] {new TrackConfig(true, new AudioFormat(AudioFormat.LINEAR, 8000.0, 8, 1, -1, AudioFormat.UNSIGNED))};
    prefs.transcodeWizardConfig.destUrl = URLUtils.createUrlStr(new File(PathUtils.getTempPath(), "gulp2-transcoded.wav"));
    // TODO: format
   
    savePrefs();
View Full Code Here

      },
      PlugInManager.MULTIPLEXER);
    PlugInManager.addPlugIn("com.sun.media.multiplexer.audio.GSMMux",
      new Format[] {},
      new Format[] {
        new FileTypeDescriptor("audio.x_gsm"),
      },
      PlugInManager.MULTIPLEXER);
    PlugInManager.addPlugIn("com.sun.media.multiplexer.audio.MPEGMux",
      new Format[] {},
      new Format[] {
        new FileTypeDescriptor("audio.mpeg"),
      },
      PlugInManager.MULTIPLEXER);
    PlugInManager.addPlugIn("com.sun.media.multiplexer.audio.WAVMux",
      new Format[] {},
      new Format[] {
        new FileTypeDescriptor("audio.x_wav"),
      },
      PlugInManager.MULTIPLEXER);
    PlugInManager.addPlugIn("com.sun.media.multiplexer.audio.AIFFMux",
      new Format[] {},
      new Format[] {
        new FileTypeDescriptor("audio.x_aiff"),
      },
      PlugInManager.MULTIPLEXER);
    PlugInManager.addPlugIn("com.sun.media.multiplexer.audio.AUMux",
      new Format[] {},
      new Format[] {
        new FileTypeDescriptor("audio.basic"),
      },
      PlugInManager.MULTIPLEXER);
    PlugInManager.addPlugIn("com.sun.media.multiplexer.video.AVIMux",
      new Format[] {},
      new Format[] {
        new FileTypeDescriptor("video.x_msvideo"),
      },
      PlugInManager.MULTIPLEXER);
    PlugInManager.addPlugIn("com.sun.media.multiplexer.video.QuicktimeMux",
      new Format[] {},
      new Format[] {
        new FileTypeDescriptor("video.quicktime"),
      },
      PlugInManager.MULTIPLEXER);


  }
View Full Code Here

  private static final boolean USE_JAVASOUND = true;
 
  public WAVMux()
  {
    super(new FileTypeDescriptor(FileTypeDescriptor.WAVE), AudioFileFormat.Type.WAVE);
  }
View Full Code Here

{
  private static final Logger logger = LoggerSingleton.logger;

  public AUMux()
  {
    super(new FileTypeDescriptor(FileTypeDescriptor.BASIC_AUDIO));
  }
View Full Code Here

public class AIFFMux extends JavaSoundMux
{

  public AIFFMux()
  {
    super(new FileTypeDescriptor(FileTypeDescriptor.AIFF), AudioFileFormat.Type.AIFF);
  }
View Full Code Here

public class JavaSoundAUMux extends JavaSoundMux
{

  public JavaSoundAUMux()
  {
    super(new FileTypeDescriptor(FileTypeDescriptor.BASIC_AUDIO), AudioFileFormat.Type.AU);
  }
View Full Code Here

        },
        PlugInManager.MULTIPLEXER));
      result.add(new PlugInInfo("com.sun.media.multiplexer.audio.GSMMux",
        new Format[] {},
        new Format[] {
          new FileTypeDescriptor("audio.x_gsm"),
        },
        PlugInManager.MULTIPLEXER));
      result.add(new PlugInInfo("com.sun.media.multiplexer.audio.MPEGMux",
        new Format[] {},
        new Format[] {
          new FileTypeDescriptor("audio.mpeg"),
        },
        PlugInManager.MULTIPLEXER));
      result.add(new PlugInInfo("com.sun.media.multiplexer.audio.WAVMux",
        new Format[] {},
        new Format[] {
          new FileTypeDescriptor("audio.x_wav"),
        },
        PlugInManager.MULTIPLEXER));
      result.add(new PlugInInfo("com.sun.media.multiplexer.audio.AIFFMux",
        new Format[] {},
        new Format[] {
          new FileTypeDescriptor("audio.x_aiff"),
        },
        PlugInManager.MULTIPLEXER));
      result.add(new PlugInInfo("com.sun.media.multiplexer.audio.AUMux",
        new Format[] {},
        new Format[] {
          new FileTypeDescriptor("audio.basic"),
        },
        PlugInManager.MULTIPLEXER));
      result.add(new PlugInInfo("com.sun.media.multiplexer.video.AVIMux",
        new Format[] {},
        new Format[] {
          new FileTypeDescriptor("video.x_msvideo"),
        },
        PlugInManager.MULTIPLEXER));
      result.add(new PlugInInfo("com.sun.media.multiplexer.video.QuicktimeMux",
        new Format[] {},
        new Format[] {
          new FileTypeDescriptor("video.quicktime"),
        },
        PlugInManager.MULTIPLEXER));
    }
   
    if ((flags & FMJ) != 0)
View Full Code Here

  }
 
  public void testFileTypeDescriptor()
  {
   
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.QUICKTIME).toString(), "QuickTime");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO).toString(), "AVI");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.MPEG).toString(), "MPEG Video");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.VIVO).toString(), "Vivo");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.BASIC_AUDIO).toString(), "Basic Audio (au)");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.WAVE).toString(), "WAV");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.AIFF).toString(), "AIFF");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.MIDI).toString(), "MIDI");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.RMF).toString(), "RMF");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.GSM).toString(), "GSM");
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.MPEG_AUDIO).toString(), "MPEG Audio");
   
   
    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.CONTENT_UNKNOWN).toString(), "UnknownContent");

    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.MIXED).toString(), "application.mixed-data");

    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.RAW).toString(), "raw");

    assertEquals(new FileTypeDescriptor(FileTypeDescriptor.RAW_RTP).toString(), "raw.rtp");
    assertEquals(new FileTypeDescriptor("xyz").toString(), "xyz");

  }
View Full Code Here

TOP

Related Classes of javax.media.protocol.FileTypeDescriptor

Copyright © 2018 www.massapicom. 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.