[Debutant][JMF] Chemin Introuvable
Bonjour à tous,
J'ai un problème assez "bête" que je n'arrive pas à résoudre. En fait, il s'agit de créer d'un MediaLocator à partir d'un fichier video connu. Le problème est du faite que j'ai du mal à écrire correctement le chemin sur Linux....
java.io.IOException: File Not Found
Error : Couldn't create DataSource
Code:
1 2 3 4 5 6 7 8
|
String [] test= new String[3];
test[0]="file://home//toto//JMFExample/Test.avi";
test[1]="192.168..10";
test[2]="22222";
// Create a video transmit object with the specified params.
VideoTransmit vt = new VideoTransmit(
new MediaLocator(test[0]),test[1],test[2]); |
Ma video se trouve sur : /home/toto/JMFEXample/Test.avi
LE code a été testé sur Windows (avec la même video) et il marche nickel. Le problème vient du chemin test[0]....Merci d'avance pour vos réponses.
[EDIT1]
Code:
1 2 3 4
| String [] test= new String[3];
test[0]="//home/toto/JMFExample/Test.avi";
test[1]="192.168.1.10";
test[2]="22222"; |
Maintenant nouvelle erreur
Citation:
Error : Couldn't create DataSource
Peut-il s'agir de problèmes de codecs? ou autre?
Pour le moment, ma video est en format video : H-263 (352*288) et Wav(16bits)
codec supporté : http://java.sun.com/products/java-me...1/formats.html