Examples of ContentDescriptor


Examples of javax.media.protocol.ContentDescriptor

    public boolean isCompatible(ContentDescriptor d)
    {
        //if (d.equals(new ContentDescriptor(ContentDescriptor.RAW)))  // TODO: we want RAW_RTP only
        //  return true;
        if (d.equals(new ContentDescriptor(ContentDescriptor.RAW_RTP)))
          return true;
       
        return false;
      }
View Full Code Here

Examples of javax.media.protocol.ContentDescriptor

     // 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

Examples of javax.media.protocol.ContentDescriptor

    //
    ////////////////////////////////////////////////////////////

    public ContentDescriptor getContentDescriptor() {
        if( content == null ) {
            content = new ContentDescriptor("text/plain"); // kenlars99: TODO: this should really be text.plain, according to ContentDescriptor.mimeTypeToPackageName
        }
        return content;
    }
View Full Code Here

Examples of javax.media.protocol.ContentDescriptor

      return false;
    }
   
    public ContentDescriptor getContentDescriptor()
    {
      return new ContentDescriptor(ContentDescriptor.RAW)// It confuses me that we provide both this, and the correct format below (getFormat)
    }
View Full Code Here

Examples of javax.media.protocol.ContentDescriptor

        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    }

    processor.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW_RTP));

    TrackControl track[] = processor.getTrackControls();

    boolean encodingOk = false;
View Full Code Here

Examples of javax.media.protocol.ContentDescriptor

      System.err.println("Failed to configure the processor.");
      return false;
  }

  // Get the raw output from the processor.
  p.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));

  p.realize();
  if (!waitForState(Controller.Realized)) {
      System.err.println("Failed to realize the processor.");
      return false;
View Full Code Here

Examples of javax.media.protocol.ContentDescriptor

    }

    {
      final Element e = element.getChild("content-descriptor-encoding");
      if (e != null)
        processorWizardConfig.contentDescriptor = new ContentDescriptor(e.getTextTrim());
    }

   
   
    {
View Full Code Here

Examples of javax.media.protocol.ContentDescriptor

      System.err.println("Failed to configure the processor.");
      return false;
  }

  // Set the output content descriptor to QuickTime.
  p.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.QUICKTIME));

  // Query for the processor for supported formats.
  // Then set it on the processor.
  TrackControl tcs[] = p.getTrackControls();
  Format f[] = tcs[0].getSupportedFormats();
View Full Code Here

Examples of javax.media.protocol.ContentDescriptor

  if (!programmed)
      return "Couldn't find video track";

  // Set the output content descriptor to RAW_RTP
  ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
  processor.setContentDescriptor(cd);

  // Realize the processor. This will internally create a flow
  // graph and attempt to create an output datasource for JPEG/RTP
  // video frames.
View Full Code Here

Examples of javax.media.protocol.ContentDescriptor

  public Format getFormat() {
      return format;
  }

  public ContentDescriptor getContentDescriptor() {
      return new ContentDescriptor(ContentDescriptor.RAW);
  }
View Full Code Here
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.