je cherche une applet RTP, help me !!

je cherche une applet RTP, help me !! - Java - Programmation

Marsh Posté le 19-08-2002 à 15:55:53    

tout est ds le topic, je voudrai pouvoir jouer ds une applet une video RTP, pour cela java donne une applet: http://search.java.sun.com/search/java/?qt=rtp+applet (RTPPlayerApplet.java) mais je n'arrive pas à la compiler, les erreurs sont les suivantes:
 
C:\j2sdk1.4.0_01\bin>javac D:\Matthieu\RTPSocketPlayer.java
Note: D:\Matthieu\RTPSocketPlayer.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
 
C:\j2sdk1.4.0_01\bin>javac D:\Matthieu\RTPPlayerApplet.java
D:\Matthieu\RTPPlayerApplet.java:49: package rtp does not exist
import rtp.*;
^
D:\Matthieu\RTPPlayerApplet.java:77: cannot resolve symbol
symbol  : class ParticipantListWindow
location: class RTPPlayerApplet
    ParticipantListWindow videogui = null;
    ^
D:\Matthieu\RTPPlayerApplet.java:78: cannot resolve symbol
symbol  : class ParticipantListWindow
location: class RTPPlayerApplet
    ParticipantListWindow audiogui = null;
    ^
D:\Matthieu\RTPPlayerApplet.java:182: cannot resolve symbol
symbol  : class ParticipantListWindow
location: class RTPPlayerApplet
            videogui = new ParticipantListWindow(videomgr);
                           ^
D:\Matthieu\RTPPlayerApplet.java:185: cannot resolve symbol
symbol  : class ParticipantListWindow
location: class RTPPlayerApplet
            audiogui = new ParticipantListWindow(audiomgr);
                           ^
Note: D:\Matthieu\RTPPlayerApplet.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
5 errors
 
alors si kelkun pouvais m'aider, se serai vraiment sympa !!
merci d'avance !
 
 [:mickey_mousse]  

Reply

Marsh Posté le 19-08-2002 à 15:55:53   

Reply

Marsh Posté le 19-08-2002 à 16:08:38    

pas besoin de m'envoyer un MP, je lis le forum qd j'ai le temps. Pour ton problème :
 
il te manque le package rtp  
 
Ceci dit c'est assez surprenant de la part de SUN de releaser un truc comme ca. Chercher sur le site web de JMF (http://java.sun.com/products/java-media/jmf) où on référence cette applet.  
 
Pour chaque solution on te donne la méthode pour la compiler et la lancer ...


---------------
Just because you feel good does not make you right
Reply

Marsh Posté le 19-08-2002 à 16:26:21    

j'ai bien vu kil me mankais un package rtp, mais si je vais sur la doc API, il me dit: Deprecated. This inferface has been replaced with the RTPManager interface. Alors je fais comment pour avoir la nouvelle interface ?? et pouvoir compiler mon applet ??  
merci d'avance!
 [:mickey_mousse]

Reply

Marsh Posté le 19-08-2002 à 16:27:54    

recompile ton applet en utilisant le flag deprecated, un truc du genre
 
javac -deprecated ....
 
et copie ce que le compilateur recrache pour voir ...


---------------
Just because you feel good does not make you right
Reply

Marsh Posté le 19-08-2002 à 16:34:05    

C:\j2sdk1.4.0_01\bin>javac -deprecation D:\Matthieu\RTPPlayerApplet.java
D:\Matthieu\RTPPlayerApplet.java:49: package rtp does not exist
import rtp.*;
^
D:\Matthieu\RTPPlayerApplet.java:68: warning: javax.media.rtp.SessionManager in
javax.media.rtp has been deprecated
    SessionManager videomgr = null;
    ^
D:\Matthieu\RTPPlayerApplet.java:69: warning: javax.media.rtp.SessionManager in
javax.media.rtp has been deprecated
    SessionManager audiomgr = null;
    ^
D:\Matthieu\RTPPlayerApplet.java:77: cannot resolve symbol
symbol  : class ParticipantListWindow
location: class RTPPlayerApplet
    ParticipantListWindow videogui = null;
    ^
D:\Matthieu\RTPPlayerApplet.java:78: cannot resolve symbol
symbol  : class ParticipantListWindow
location: class RTPPlayerApplet
    ParticipantListWindow audiogui = null;
    ^
D:\Matthieu\RTPPlayerApplet.java:333: warning: javax.media.rtp.SessionManager in
 javax.media.rtp has been deprecated
    private SessionManager StartSessionManager(String destaddrstr,
            ^
D:\Matthieu\RTPPlayerApplet.java:182: cannot resolve symbol
symbol  : class ParticipantListWindow
location: class RTPPlayerApplet
            videogui = new ParticipantListWindow(videomgr);
                           ^
D:\Matthieu\RTPPlayerApplet.java:185: cannot resolve symbol
symbol  : class ParticipantListWindow
location: class RTPPlayerApplet
            audiogui = new ParticipantListWindow(audiomgr);
                           ^
D:\Matthieu\RTPPlayerApplet.java:282: warning: javax.media.rtp.SessionManager in
 javax.media.rtp has been deprecated
        SessionManager source =(SessionManager)event.getSource();
        ^
D:\Matthieu\RTPPlayerApplet.java:282: warning: javax.media.rtp.SessionManager in
 javax.media.rtp has been deprecated
        SessionManager source =(SessionManager)event.getSource();
                                ^
D:\Matthieu\RTPPlayerApplet.java:338: warning: javax.media.rtp.SessionManager in
 javax.media.rtp has been deprecated
        SessionManager mymgr = new RTPSessionMgr();
        ^
5 errors
6 warnings
 
voila
 [:mickey_mousse]

Reply

Marsh Posté le 19-08-2002 à 16:38:58    

bon bin dans un premier temps cherche sur le site web de JMF et regarde où est référencé cette fameuse applet. Ca m'étonnerait que SUN délivre un code source sans explication


---------------
Just because you feel good does not make you right
Reply

Marsh Posté le 19-08-2002 à 16:41:05    

http://search.java.sun.com/search/java/?qt=rtp+applet
 
vas voir sur la première ligne, tu peux alors télécharger l'applet !
ou va sur :
 
http://java.sun.com/products/java- [...] cketPlayer
 
et tu as les explications !!

Reply

Marsh Posté le 20-08-2002 à 09:32:59    

:bounce:  
 [:mickey_mousse]

Reply

Marsh Posté le 20-08-2002 à 09:33:16    

ah m**** j'ai encore oublié


---------------
Just because you feel good does not make you right
Reply

Marsh Posté le 20-08-2002 à 09:37:26    

pas grave, regarde maintenant si tu as un peu de temps !!
 :jap:

Reply

Marsh Posté le 20-08-2002 à 09:37:26   

Reply

Marsh Posté le 20-08-2002 à 11:04:30    

sur le forum de java.sun.com cette erreur a deja été rencontrée, la solution est de commenter toutes les lignes ou il y a : ParticipantListWindow et de commenter aussi la ligne d'"import rtp.*;" voila une solution possible ! Après je sais pas encore si l'applet marche ou pas, je teste !
 [:mickey_mousse]

Reply

Marsh Posté le 20-08-2002 à 11:51:45    

applet marche pr le rtp avec une video en .mov !
 [:mickey_mousse]  

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed