Examples of Media


Examples of at.bestsolution.efxclipse.runtime.examples.media.model.Media

 
  private Node focusNode;
 
  @PostConstruct
  void init(BorderPane p) {
    Media m = Media.deserialize(part.getPersistedState().get(MEDIA_OBJECT_KEY));
    if( m.getType() == MediaType.PICTURE ) {
      initPicture(p, m);
    } else if( m.getType() == MediaType.MOVIE ) {
      initMovie(p, m);
    } else {
      initSound(p, m);
    }
  }
View Full Code Here

Examples of com.dyuproject.protostuff.benchmark.Media

{
   
    public MediaContent create()
    {
        MediaContent mediaContent = new MediaContent(
                new Media(
                        "http://javaone.com/keynote.mpg",
                        0,
                        0,
                        "video/mpg4",
                        1234567l,
View Full Code Here

Examples of com.github.sommeri.less4j.core.ast.Media

  }

  public Media handleMedia(HiddenTokenAwareTree token) {
    Iterator<HiddenTokenAwareTree> children = token.getChildren().iterator();

    Media result = new Media(token);
    handleMediaDeclaration(result, children.next());
    result.setBody(handleGeneralBody(children.next()));

    return result;
  }
View Full Code Here

Examples of com.google.code.magja.model.media.Media

      // image 1

      byte[] data1 = MagjaFileUtils
          .getBytesFromFileURL("http://www.rockstore.com.br/store/catalog/co356.jpg");

      Media image1 = new Media();
      image1.setName("guevara");
      image1.setMime("image/jpeg");
      image1.setData(data1);

      Set<ProductMedia.Type> types1 = new HashSet<ProductMedia.Type>();
      types1.add(ProductMedia.Type.IMAGE);

      ProductMedia prd_media1 = new ProductMedia();
      prd_media1.setExclude(false);
      prd_media1.setImage(image1);
      prd_media1.setLabel("Image for Product");
      prd_media1.setPosition(1);
      prd_media1.setTypes(types1);

      product.addMedia(prd_media1);

      byte[] data2 = MagjaFileUtils
          .getBytesFromFileURL("http://www.rockstore.com.br/store/catalog/co356_foto.jpg");

      Media image2 = new Media();
      image2.setName("guevara");
      image2.setMime("image/jpeg");
      image2.setData(data2);

      Set<ProductMedia.Type> types2 = new HashSet<ProductMedia.Type>();
      types2.add(ProductMedia.Type.SMALL_IMAGE);

      ProductMedia prd_media2 = new ProductMedia();
View Full Code Here

Examples of com.google.code.magja.model.media.Media

      // get some image from internet
      byte[] data = MagjaFileUtils
          .getBytesFromFileURL("http://www.rockstore.com.br/store/catalog/hp-177_foto.jpg");

      // create the media contents
      Media image = new Media();
      image.setName("guevara");
      image.setMime("image/jpeg");
      image.setData(data);

      // options for the product media
      Set<ProductMedia.Type> types = new HashSet<ProductMedia.Type>();
      types.add(ProductMedia.Type.IMAGE);
View Full Code Here

Examples of com.google.code.magja.model.media.Media

   
    // add media
    try {
      byte[] data = MagjaFileUtils.getBytesFromFileURL("http://code.google.com/images/code_sm.png");
 
      Media image = new Media();
      image.setName("google");
      image.setMime("image/jpeg");
      image.setData(data);
 
      Set<ProductMedia.Type> types = new HashSet<ProductMedia.Type>();
      types.add(ProductMedia.Type.IMAGE);
      types.add(ProductMedia.Type.SMALL_IMAGE);
 
View Full Code Here

Examples of com.sola.instagram.model.Media

    /*
     * Test that no Exception is thrown for a valid user id
     */
    Random rand = new Random(19580427);
    InstagramSession session = getNewSession();
    Media media = session.getPopularMedia().get(rand.nextInt() % 10);
    //Comment comment = session.postComment(media.getId(), "nice pic");
  }
View Full Code Here

Examples of com.twilio.sdk.resource.instance.Media

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.ListResource#makeNew(com.twilio.sdk.TwilioRestClient, java.util.Map)
   */
  @Override
    protected Media makeNew(TwilioRestClient client, Map<String, Object> params) {
      return new Media(client, params);
    }
View Full Code Here

Examples of data.media.Media

    public EishayDecodeBytes(){
        super("EishayDecode-Byte[]");

        content = new MediaContent();

        Media media = new Media();
        media.uri = "http://javaone.com/keynote.mpg";
        media.title = "Javaone Keynote";
        media.width = 640;
        media.height = 480;
        media.format = "video/mpg4";
View Full Code Here

Examples of de.panikco.pmdb.model.Media

  private Errors errors;

  @Before
  public void setup() {
    validator = new MediaValidator();
    media = new Media();
    media.setTitle("A valid title");
    media.setComment("A valid comment.");
   
    errors = new BindException(media, "media");
  }
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.