views:

151

answers:

0

Hello,

I'd like to play multiple video files at the same time on Android 2.1 (up to 4). It's possible to reduce the resolution of the video files and display them all on the screen, but it seems only one file is playable at a time. I tried then to use threads in the hope that this might help, but it doesn't. Only one video is played.

Any idea ? Thanks.

Main file: [...] VideoView player=null, player2=null;

player.setVideoPath("/sdcard/1.3gp"); player2.setVideoPath("/sdcard/2.3gp");

Thread p1 = new p1(player); p1.start();

Thread p2 = new p1(player2); p2.start(); [...]

Thread file:

public class p1 extends Thread {

              VideoView p = null;

       public p1(VideoView player) {
         p = player;

       }

       public void run() {
              p.start();
       }

}