Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

LECTEUR VIDEO UTILISANT L'API JMF


Information sur la source

Catégorie :Api Classé sous : video, lecteur, api, jmf, player Niveau : Débutant Date de création : 13/07/2004 Vu / téléchargé: 21 445 / 4 466

Note :
7,33 / 10 - par 3 personnes
7,33 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10

Commentaire sur cette source (39)
Ajouter un commentaire et/ou une note

Description

Cliquez pour voir la capture en taille normale
J'ai utilise un code que j'ai trouve sur ce site et je l'ai modifie. J'ai rajoute plusieurs boutons et un slider...et c'est la mon probleme, je n'arrive pas a faire avancer le slider en meme temps que la video..... si qq'1 pouvait voir ca ce serait vraiment sympa...
                   ^_^
 

Conclusion

il y a des lignes de codes qui ne servent peut etre pas...
 

Fichier Zip

Pour les "Membres Club", vous pouvez télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !
  •   Video Player
    •   videoPlayer
      •   icons
      •   video
      • MediaPlayer$1.classTélécharger ce fichier [Réservé aux membres club]836 octets
      • MediaPlayer$2.classTélécharger ce fichier [Réservé aux membres club]1 951 octets
      • MediaPlayer$3.classTélécharger ce fichier [Réservé aux membres club]1 401 octets
      • MediaPlayer$4.classTélécharger ce fichier [Réservé aux membres club]972 octets
      • MediaPlayer$5.classTélécharger ce fichier [Réservé aux membres club]1 175 octets
      • MediaPlayer$6.classTélécharger ce fichier [Réservé aux membres club]1 001 octets
      • MediaPlayer.classTélécharger ce fichier [Réservé aux membres club]7 101 octets
      • video_Player.javaTélécharger ce fichier [Réservé aux membres club]Voir ce fichier12 836 octets
    • .classpathTélécharger ce fichier [Réservé aux membres club]226 octets
    • .projectTélécharger ce fichier [Réservé aux membres club]388 octets

Télécharger le zip

Commentaires et avis

signaler à un administrateur
Commentaire de thierrytitix le 14/07/2004 16:15:43

ok désolé je voulais tester ce truc j avais jamais essayé . Voici une solution faite un peu à la va vite mais j espere que ca conviendra.
package videoPlayer;

import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.media.*;
import javax.swing.*;
import javax.swing.event.ChangeEvent;

/*****************************
*   MediaPlayer Class       *
*****************************/
class MediaPlayer extends JFrame implements  ControllerListener
{
    private Player player = null;
    private JPanel videoPanel = null;
    private JSlider slider = null;
    private volatile Thread slider_updater = null;
    private volatile boolean follows_slider = true;
    private JToggleButton start_stop = new JToggleButton();
    float step = 1.0f / 10;
    
    
    private JMenuBar menu_bar = null; // menu bar used for the different Buttons
    private JFrame frame = null;     // frame used to open a file
    private JFileChooser fc = null; // used for the dialog window to open a file
    private File file;

    /* Various Buttons */
    private JButton open = null;
    private JButton play = null;
    private JButton pause = null;
    private JButton stop = null;
    private JButton about = null;
    private CLSr csr = null;
    private Time duration = null;

    /***********************************************
     * MediaPlayer Builder      *
     * needs the address of a movie as an argument *
     ***********************************************/
    public MediaPlayer( String nomFilm )
    {
        super(); /* Constructs a new frame that is initially invisible.
                    This constructor sets the component's locale property to the value returned by JComponent.*/
        setLocation( 400, 200 ); /* Moves this component to a new location. The top-left corner of the new location is specified by the
                                    x and y parameters in the coordinate space of this component's parent. */
        setTitle("Video Player"); // Sets the title for this frame to the specified string.
        getContentPane().setLayout( new BorderLayout() ); /* Sets the layout manager for this container.
                                                             Constructs a new border layout with no gaps between components. */
        addWindowListener( new WindowAdapter() /* Adds the specified window listener to receive window events from this window */
         {    
         public void windowClosing( WindowEvent we ) /* Invoked when a window is in the process of being closed. The close operation can be overridden at
                 this point.*/
                 {
                 JOptionPane.showMessageDialog(null, "Thank you to have used Video Player", "Quit",JOptionPane.INFORMATION_MESSAGE);
                 /* Brings up a dialog that displays a message using a default icon determined by the messageType
                    parameter. */
                 System.exit(0); // Terminates the currently running Java Virtual Machine.
                 }
         }
        );
        
        if ( nomFilm != null)
            loadMovie( nomFilm ); // load the movie
    }

    /******************************************
     * method of loading of film from its URL *
     ******************************************/
    private void loadMovie( String movieURL )
    {
        if ( movieURL.indexOf( ":" ) < 3 ) movieURL = "file:" + movieURL;
        try
        {    // creation of the  player

            player = Manager.createPlayer( new MediaLocator( movieURL ) );
            player.addControllerListener( this ) ;
            player.realize();
        }
        catch (Exception e)
        {
            System.out.println("Error creating player");
            return;
        }
}
private void validateSlider()
{
Time tm = duration;
  System.out.println("toto"+tm.getSeconds());
  slider.setMaximum(1160);
  slider.setMinimum(0);
//   creates a slider with the specified orientation and the specified minimum, maximum, and initial values
  
}

    /********************************************************
     * intercept all the events in provenence of the player *
     ********************************************************/
    public void controllerUpdate( ControllerEvent ce )
    {
     // to change the icon of tje player
        Toolkit tk = Toolkit.getDefaultToolkit();
        setIconImage(new ImageIcon("videoPlayer/icons/icon.gif").getImage());
              
        // to give the duration of the movie
       if  (ce instanceof DurationUpdateEvent)
     {
     duration= ((DurationUpdateEvent) ce).getDuration();
            System.out.println( "duration: " + (int)duration.getSeconds()+" seconds");
        }

       // to start the video and create all the buttons etc...
        if ( ce instanceof RealizeCompleteEvent )
        {                    
         if (menu_bar == null)
         {                 
         //creation of the menu bar
           menu_bar = new JMenuBar();
                     
           //creation of the different buttons with the icons
           open = new JButton(new ImageIcon ("videoPlayer/icons/open.gif"));
         open.setMargin(new Insets( 0, 0, 0, 0));
           play = new JButton(new ImageIcon ("videoPlayer/icons/play.gif"));
           play.setMargin(new Insets( 0, 0, 0, 0));
           pause = new JButton(new ImageIcon ("videoPlayer/icons/pause.gif"));
           pause.setMargin(new Insets( 0, 0, 0, 0));
         stop = new JButton(new ImageIcon ("videoPlayer/icons/stop.gif"));
         stop.setMargin(new Insets( 0, 0, 0, 0));
         about = new JButton(new ImageIcon ("videoPlayer/icons/about.gif"));
         about.setMargin(new Insets( 0, 0, 0, 0));
        
         //creation of the frame used to open a file
         frame = new JFrame();
         fc = new JFileChooser();
        
         //the buttons are add to the menu bar
         menu_bar.add(open);
         menu_bar.add(play);
         menu_bar.add(pause);
         menu_bar.add(stop);
         menu_bar.add(about);
System.out.println("validate");
Time tm = player.getDuration();
System.out.println(tm.getSeconds());
slider = new JSlider(JSlider.HORIZONTAL,0,(int)(tm.getSeconds()),0);
csr = new CLSr();
slider.addChangeListener(csr);

slider.setMajorTickSpacing(10); //This method sets the major tick spacing
slider.setMinorTickSpacing(2); //This method sets the minor tick spacing
slider.setPaintTicks(true); //Determines whether tick marks are painted on the slider
slider.setPaintLabels(false); //Determines whether labels are painted on the slider
slider.setBorder(BorderFactory.createEmptyBorder(0,0,10,0)); //Sets the border of this component           
menu_bar.add(slider); //Appends the slider to the end of the menu bar

//to set the menu bar
setJMenuBar(menu_bar);

           //actions which are made while pressing the open button
           open.addActionListener(new ActionListener()
                    {
                        public void actionPerformed(ActionEvent e)
                        {
slider.removeChangeListener(csr);
                         //modification of the icon
                         Toolkit tk = Toolkit.getDefaultToolkit();
                            frame.setIconImage(new ImageIcon("videoPlayer/icons/icon.gif").getImage());
                        
                            System.out.println("Open a file");
                            
                            //posting of a window "of opening"
                         int choix = fc.showOpenDialog(frame);
                        
                         if(choix == JFileChooser.APPROVE_OPTION)
                            {
                             file = fc.getSelectedFile(); //recover the selected file
                                String address =  file.getPath();//recover the address of the file
                                loadMovie( address );
    player.start();
validateSlider();
slider.addChangeListener(csr);
                         }
                        }

                    });

           //actions which are made while pressing the play button
                play.addActionListener(new ActionListener()
                        {
                            public void actionPerformed(ActionEvent e)
                            {
                             player.start();
                             //player.setMediaTime(new Time(0.0));
                             while(play.isSelected())
                             {
                           Time tm = player.getMediaTime();
                           double t = tm.getSeconds();
                           if (t > 0.0)
                           {
                             player.setMediaTime(new Time(t - step));
                           }
                             }
                             System.out.println("Playing movie");        
                            }
                        });
                
                //actions which are made while pressing the pause button
                pause.addActionListener(new ActionListener()
                        {
                            public void actionPerformed(ActionEvent e)
                            {
                             player.stop();
                             player.deallocate();
                             System.out.println("Pause");
                            }
                        });
                
                //actions which are made while pressing the stop button
                stop.addActionListener(new ActionListener()
                        {
                            public void actionPerformed(ActionEvent e)
                            {
                             player.stop();
                             player.deallocate();
                             System.out.println("Stop");
                             player.setMediaTime(new Time(0)); //puts the video at the beginning
                                if (player.getTargetState() < Player.Started)
                                    player.prefetch();
                            }
                        });
                
                //actions which are made while pressing the about button
                about.addActionListener(new ActionListener()
                        {
                            public void actionPerformed(ActionEvent e)
                            {  
                             System.out.println("About");
                             //Brings up a dialog that displays a message using a default icon determined by the messageType parameter
                             JOptionPane.showMessageDialog(null," Video Player 1.1\n Video Player Java using JMF\n\n version 1.1", "About Video Player",JOptionPane.INFORMATION_MESSAGE);
                            }
                        });
         }
        
        
         if ( videoPanel == null)
            { //creation of the panel of sight
         videoPanel = new JPanel();
                videoPanel.setLayout( new BorderLayout() );
                getContentPane().add( videoPanel, BorderLayout.CENTER);
            }
            else
                videoPanel.removeAll();
        
         //obtaining the component restoring the image in provenence of the player.
            Component vis = player.getVisualComponent();
            if ( vis != null )
            {   // if it is valid then we put it in our sight
videoPanel.add( vis, BorderLayout.CENTER);
                videoPanel.setVisible(true);
                this.pack(); // resize the size according to the size of film
            }
        }
              
        else if ( ce instanceof EndOfMediaEvent )
        {
            if (player != null)
            {    //stop the movie
                 player.stop();
                 player.deallocate(); /* Deallocating the Player releases any resources that would prevent another
                                         Player from being started. For example, if the Player uses a hardware device
                                         to present its media, deallocate frees that device so that other Players
                                         can use it. */
            }
        }
    }

  
    


    

    /************
     *   Main   *
     ************/
    public static void main( String[] args )
    {    // needs the address of a movie: *.avi,*.mpg...
     new MediaPlayer("videoPlayer/video/open.avi" ).setVisible( true );
    }
public class CLSr implements javax.swing.event.ChangeListener
{
public CLSr()
{
}
public void stateChanged(ChangeEvent e)
{
System.out.println("state");
float tm = slider.getValue();
System.out.println("value="+tm);
player.setMediaTime(new Time(tm));
}
}   }

signaler à un administrateur
Commentaire de Shamamatt le 14/07/2004 16:27:50

Merci de me proposer une solution...mais j'ai essaye et le slider n'avance pas...ca marche chez toi ? moi, il y a juste le nombre de traits qui varie celon la video ki est ouverte mais le slider reste a son point de depart qd la video se lance...j'ai pas le temps de me replonger la dedans pour l'instant...
encore merci...
a+

shamamatt

signaler à un administrateur
Commentaire de thierrytitix le 14/07/2004 17:02:40

oui ok c vrai la scroll n a pas l air de suivre mais neanmoins si tu la selectionne avec la souris ca va direct la ou tu veux dans le film.
Je regarde pour le scroll.

signaler à un administrateur
Commentaire de Shamamatt le 14/07/2004 18:07:21

ah oui j'avais pas vu ca...c bien !
c sympa de regarder pour le scroll... MERCI

signaler à un administrateur
Commentaire de thierrytitix le 14/07/2004 18:19:29

Bon ben voila je te livre le fichier corrigé avec un thread en plus pour bouger la barre ca a l air de marcher mais c de l approximatif , je debute en multithread.
C est aussi de l approximatif pour la barre de scroll qui ne devrait pas etre la representation exacte de la longueur du film mais plutot d'un multiple de cette longueur afin de faire un entier sinon la derniere seconde risque de ne pas etre représentée sur la barre enfin bon tu me diras c pas si grave.
Parfois il arrive des erreurs mais non bloquantes.

package videoPlayer;

import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.media.*;
import javax.swing.*;
import javax.swing.event.ChangeEvent;

/*****************************
*   MediaPlayer Class       *
*****************************/
class MediaPlayer extends JFrame implements  ControllerListener
{
    private Player player = null;
    private JPanel videoPanel = null;
    private JSlider slider = null;
    private volatile Thread slider_updater = null;
    private volatile boolean follows_slider = true;
    private JToggleButton start_stop = new JToggleButton();
    float step = 1.0f / 10;
    
    
    private JMenuBar menu_bar = null; // menu bar used for the different Buttons
    private JFrame frame = null;     // frame used to open a file
    private JFileChooser fc = null; // used for the dialog window to open a file
    private File file;

    /* Various Buttons */
    private JButton open = null;
    private JButton play = null;
    private JButton pause = null;
    private JButton stop = null;
    private JButton about = null;
    private CLSr csr = null;
    private Time duration = null;
private MoveTick mt = null;
    /***********************************************
     * MediaPlayer Builder      *
     * needs the address of a movie as an argument *
     ***********************************************/
    public MediaPlayer( String nomFilm )
    {
        super(); /* Constructs a new frame that is initially invisible.
                    This constructor sets the component's locale property to the value returned by JComponent.*/
        setLocation( 400, 200 ); /* Moves this component to a new location. The top-left corner of the new location is specified by the
                                    x and y parameters in the coordinate space of this component's parent. */
        setTitle("Video Player"); // Sets the title for this frame to the specified string.
        getContentPane().setLayout( new BorderLayout() ); /* Sets the layout manager for this container.
                                                             Constructs a new border layout with no gaps between components. */
        addWindowListener( new WindowAdapter() /* Adds the specified window listener to receive window events from this window */
         {    
         public void windowClosing( WindowEvent we ) /* Invoked when a window is in the process of being closed. The close operation can be overridden at
                 this point.*/
                 {
                 JOptionPane.showMessageDialog(null, "Thank you to have used Video Player", "Quit",JOptionPane.INFORMATION_MESSAGE);
                 /* Brings up a dialog that displays a message using a default icon determined by the messageType
                    parameter. */
                 System.exit(0); // Terminates the currently running Java Virtual Machine.
                 }
         }
        );
        
        if ( nomFilm != null)
            loadMovie( nomFilm ); // load the movie
    }

    /******************************************
     * method of loading of film from its URL *
     ******************************************/
    private void loadMovie( String movieURL )
    {
        if ( movieURL.indexOf( ":" ) < 3 ) movieURL = "file:" + movieURL;
        try
        {    // creation of the  player

            player = Manager.createPlayer( new MediaLocator( movieURL ) );
            player.addControllerListener( this ) ;
            player.realize();
        }
        catch (Exception e)
        {
            System.out.println("Error creating player");
            return;
        }
}
private void validateSlider()
{
Time tm = duration;
System.out.println(duration);
  slider.setMaximum((int)duration.getSeconds());
  slider.setMinimum(0);
  
}

    /********************************************************
     * intercept all the events in provenence of the player *
     ********************************************************/
    public void controllerUpdate( ControllerEvent ce )
    {
     // to change the icon of tje player
        Toolkit tk = Toolkit.getDefaultToolkit();
        setIconImage(new ImageIcon("videoPlayer/icons/icon.gif").getImage());
              
        // to give the duration of the movie
       if  (ce instanceof DurationUpdateEvent)
     {
     duration= ((DurationUpdateEvent) ce).getDuration();
            System.out.println( "duration: " + (int)duration.getSeconds()+" seconds");
        }

       // to start the video and create all the buttons etc...
        if ( ce instanceof RealizeCompleteEvent )
        {                    
         if (menu_bar == null)
         {                 
         //creation of the menu bar
           menu_bar = new JMenuBar();
                     
           //creation of the different buttons with the icons
           open = new JButton(new ImageIcon ("videoPlayer/icons/open.gif"));
         open.setMargin(new Insets( 0, 0, 0, 0));
           play = new JButton(new ImageIcon ("videoPlayer/icons/play.gif"));
           play.setMargin(new Insets( 0, 0, 0, 0));
           pause = new JButton(new ImageIcon ("videoPlayer/icons/pause.gif"));
           pause.setMargin(new Insets( 0, 0, 0, 0));
         stop = new JButton(new ImageIcon ("videoPlayer/icons/stop.gif"));
         stop.setMargin(new Insets( 0, 0, 0, 0));
         about = new JButton(new ImageIcon ("videoPlayer/icons/about.gif"));
         about.setMargin(new Insets( 0, 0, 0, 0));
        
         //creation of the frame used to open a file
         frame = new JFrame();
         fc = new JFileChooser();
        
         //the buttons are add to the menu bar
         menu_bar.add(open);
         menu_bar.add(play);
         menu_bar.add(pause);
         menu_bar.add(stop);
         menu_bar.add(about);
System.out.println("validate");
Time tm = player.getDuration();
System.out.println(tm.getSeconds());
slider = new JSlider(JSlider.HORIZONTAL,0,(int)(tm.getSeconds()),0);
csr = new CLSr(slider,player);
slider.addChangeListener(csr);

slider.setMajorTickSpacing(10); //This method sets the major tick spacing
slider.setMinorTickSpacing(2); //This method sets the minor tick spacing
slider.setPaintTicks(true); //Determines whether tick marks are painted on the slider
slider.setPaintLabels(false); //Determines whether labels are painted on the slider
slider.setBorder(BorderFactory.createEmptyBorder(0,0,10,0)); //Sets the border of this component           
menu_bar.add(slider); //Appends the slider to the end of the menu bar

//to set the menu bar
setJMenuBar(menu_bar);

           //actions which are made while pressing the open button
           open.addActionListener(new ActionListener()
                    {
                        public void actionPerformed(ActionEvent e)
                        {
slider.removeChangeListener(csr);
csr=null;
mt=null;
//modification of the icon
                         Toolkit tk = Toolkit.getDefaultToolkit();
                            frame.setIconImage(new ImageIcon("videoPlayer/icons/icon.gif").getImage());
                        
                            System.out.println("Open a file");
                            
                            //posting of a window "of opening"
                         int choix = fc.showOpenDialog(frame);
                        
                         if(choix == JFileChooser.APPROVE_OPTION)
                            {
                             file = fc.getSelectedFile(); //recover the selected file
                                String address =  file.getPath();//recover the address of the file
                                loadMovie( address );
    player.start();
csr = new CLSr(slider,player);
mt = new MoveTick(player,slider,csr);
mt.start();
slider.addChangeListener(csr);
}
                        }

                    });

           //actions which are made while pressing the play button
                play.addActionListener(new ActionListener()
                        {
                            public void actionPerformed(ActionEvent e)
                            {
                             player.start();
//player.setMediaTime(new Time(0.0));
                             while(play.isSelected())
                             {
                             Time tm = player.getMediaTime();
                           double t = tm.getSeconds();
if (t > 0.0)
                           {
player.setMediaTime(new Time(t - step));
                           }
                             }
                             System.out.println("Playing movie");


                            }
                        });
                
                //actions which are made while pressing the pause button
                pause.addActionListener(new ActionListener()
                        {
                            public void actionPerformed(ActionEvent e)
                            {
                             player.stop();
                             player.deallocate();
                             System.out.println("Pause");
                            }
                        });
                
                //actions which are made while pressing the stop button
                stop.addActionListener(new ActionListener()
                        {
                            public void actionPerformed(ActionEvent e)
                            {
                             player.stop();
                             player.deallocate();
                             System.out.println("Stop");
                             player.setMediaTime(new Time(0)); //puts the video at the beginning
                                if (player.getTargetState() < Player.Started)
                                    player.prefetch();
                            }
                        });
                
                //actions which are made while pressing the about button
                about.addActionListener(new ActionListener()
                        {
                            public void actionPerformed(ActionEvent e)
                            {  
                             System.out.println("About");
                             //Brings up a dialog that displays a message using a default icon determined by the messageType parameter
                             JOptionPane.showMessageDialog(null," Video Player 1.1\n Video Player Java using JMF\n\n version 1.1", "About Video Player",JOptionPane.INFORMATION_MESSAGE);
                            }
                        });
         }
        
        
         if ( videoPanel == null)
            { //creation of the panel of sight
         videoPanel = new JPanel();
                videoPanel.setLayout( new BorderLayout() );
                getContentPane().add( videoPanel, BorderLayout.CENTER);
            }
            else
                videoPanel.removeAll();
        
         //obtaining the component restoring the image in provenence of the player.
            Component vis = player.getVisualComponent();
            if ( vis != null )
            {   // if it is valid then we put it in our sight
videoPanel.add( vis, BorderLayout.CENTER);
validateSlider();
       videoPanel.setVisible(true);
                this.pack(); // resize the size according to the size of film
            }
        }
              
        else if ( ce instanceof EndOfMediaEvent )
        {
            if (player != null)
            {    //stop the movie
                 player.stop();
                 player.deallocate(); /* Deallocating the Player releases any resources that would prevent another
                                         Player from being started. For example, if the Player uses a hardware device
                                         to present its media, deallocate frees that device so that other Players
                                         can use it. */
            }
        }
    }

  
    

/************
*   Main   *
************/
public static void main( String[] args )
{    // needs the address of a movie: *.avi,*.mpg...
new MediaPlayer("videoPlayer/video/open.avi" ).setVisible( true );
}

    
public class CLSr implements javax.swing.event.ChangeListener
{
JSlider slider = null;
Player player = null;
public CLSr(JSlider slider,Player player)
{
this.slider = slider;
this.player = player;
}
public void stateChanged(ChangeEvent e)
{
float tm = slider.getValue();
player.setMediaTime(new Time(tm));
}
}





    private class MoveTick extends Thread
    {
Player player=null;
JSlider slider = null;
CLSr csr = null;
public MoveTick(Player player,JSlider slider,CLSr csr)
{
this.player = player;
this.slider = slider;
this.csr = csr;
}

public void run() {
   while (true) {
   try {
slider.removeChangeListener(csr);
slider.setValue((int)(player.getMediaTime().getSeconds()));
slider.addChangeListener(csr);
   Thread.sleep(1000);
   } catch (InterruptedException e) {
   break;
   }
   }
   }
public void reset() {

   }
    }
    
}







signaler à un administrateur
Commentaire de Shamamatt le 14/07/2004 18:29:34

OK, ca marche qd meme tres bien ! merci beaucoup !

a+

shamamatt

signaler à un administrateur
Commentaire de intel4 le 19/07/2004 15:52:40

très bien mais est il possible de le faire communiquer avec du php?

signaler à un administrateur
Commentaire de intel4 le 19/07/2004 15:53:14

très bien mais est il possible de le faire communiquer avec du php?

signaler à un administrateur
Commentaire de Shamamatt le 19/07/2004 16:09:17

je sais pas... dsl

^_^

signaler à un administrateur
Commentaire de thierrytitix le 19/07/2004 19:30:13

oui c possible, il suffit de creer à partir de ce fichier un exe et de le lancer par l intermédiaire de php en demarrant un processus qui demarrera le fichier java(on peut meme le lancer en lancant "java nomdufichier" depuis php).
On peut envisager aussi l'autre sens et lancer un fichier en php depuis le java à condition de posseder un serveur php.
Il faudrait que tu detailles ce que tu voudrais faire exactement à partir de ce fichier java.

signaler à un administrateur
Commentaire de intel4 le 21/07/2004 14:44:24

Comment ( "java nomdufichier")? comme appelle d'un module externe? 'avec (exec (java nomdufichier))? mais pour ça, il faudra que la commande java soit reconnu.

en fait moi je suis sous linux et je travail avec  le serveur apache. Mon souci est de permettre à partir d'un clik sur un nom de video(sous forme de lien) le document video joue dans le player.

Avez vous une solution pour ça?