Loading...
Logo
Processing Forum
medul.la's Profile
2 Posts
5 Responses
0 Followers

Activity Trend

Last 30 days
Show:
Private Message
    hi,

    i have a project in which an application manipulates video, image, text and sound and creates a sort of a collage from analizing such multimedia files. i know that's perfectly possible using processing, but my question is about the distribution or the access platform. i thought about a web platform, using processing.js, but in that case, external libraries are not available, although i think it would be possible to work with php/javascript and html5 elements such as audio and video.

    i could also try to export a java app and put it online, but in that case, can i work with external libraries and access files such as videos and audios?

    another possibility i thought about is to export it as an application specific for each OS, but, in the case i use videos, images, etc, are they "embeded" in the app as well? and can an application access information on the web (through APIs or URLs)?

    thanks!
    hi,

    i have this code that creates a slideshow of .jpg images stored in a folder. the thing is i need to update the array at every iteration, since i may need to add images to the folder and these new images need to be added to the array. how can i achieve that? should i use an ArrayList instead? here's the code so far (which loads the images from a folder and shows an image, sequentially, at every second):
    1. int t = 0;
      File path = new File("/home/mattknelsen/sketchbook/slideshow/imgs");
      String[] images = path.list();
      PImage img[];

      void setup() {
        background(0);
        size(screen.width,screen.height);
        frameRate(40);
        imageBank("imgs/", images.length);
      }

      void draw() {
        if(t<images.length){
         image(img[t],0,0);
         t = t + 1;
         delay(1000);
        }
        else{
          t = 0;
        }
       
      }

      void imageBank(String index, int filecount) {
        img = new PImage[filecount];
        for ( int i = 0; i< images.length; i++ ){
          img[i] = loadImage(index + "img" + (i+1) + ".jpg" );
        }
      }