Je suis un débutant et j'arrive pas a installer/utiliser JVLC
Quelqu'un pourrais m'expliquer comment on fait ???
Merci
Version imprimable
Je suis un débutant et j'arrive pas a installer/utiliser JVLC
Quelqu'un pourrais m'expliquer comment on fait ???
Merci
je demande pas un tutoriel complet bien évidement juste un petit truc qui pourrais m'aider a commencer (genre réussir a lire une vidéo avec JVLC serais déjà pas mal)
j'ai déjà un exemple qui est sensé le faire mais il ne marche pas : il comprend pas le "import org.videolan.jvlc*;" ce qui est normal puisque je sais pas comment il saurais où le trouver ...
j'ai mis a jours les variables PATH et CLASSPATH, mais il ne le comprend toujours pas, j'ai aussi essayer de mettre JVLC dans mon projet mais il y a des problèmes a cause des interfaces avec les dlls. je tourne en rond j'ai plus d'idées :cry:
Alors, je n'ai plus le code sous la main, mais il me semble qu'il faut faire quelques manipulations afin que JVLC puisse marché sous windows (j'imagine que l'application marche sous windows)
Pour ma part, voila ce que j'avais fait:
- creation d'un fichier jar avec l'ensemble des classes, plus facile à importer sous eclipse par exemple
- Copier jvlc.dll et jawt.dll dans c:\WINDOWS\system32 (ou dans le path java je crois)
- laisser l'ensemble des dll dans de dossier plugins et l'importer aussi
- utiliser les exemples fournis par jvlc pour tester
Je sais que jvlc fonctionne perfaitement car nous l'utilisons actuellement dans un projet. Malheureusement, ce n'est pas moi qui m'on occupe. Pour autant, j'espere que ces quelques lignes pourront aider.
Pièce jointe 13723
Pièce jointe 13724
As-tu une classe avec public static void main pour exécuter JVLC?
J'ai essayé de faire ce que tu as dit mais ça ne fonctionne pas.
Je suis de retour après des partiels
J'ai essayer ce que tu me dis, mais j'arrive pas a faire marcher SwingClient
eclipse me dit :
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 [00000001] main libvlc error: no memcpy module matched "any" [00000008] main interface error: no interface module matched "hotkeys,none" [00000008] main interface error: no suitable interface module [00000001] main libvlc error: interface "hotkeys,none" initialization failed Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: org.videolan.jvlc.JVLCCanvas.paint(Ljava/awt/Graphics;)V at org.videolan.jvlc.JVLCCanvas.paint(Native Method) at sun.awt.RepaintArea.paintComponent(Unknown Source) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Bonjour,
J'essaye aussi de desesperement d'installer JVLC sur ma machine.
J'ai utilise le fichier .jar dans Eclipse ca resout toutes les dependances c'est cool. J'ai copie aussi les fichiers .dll dans c:/WINNT/system32 (pas dossier windows mais bon pareil). Cependant il faut aussi mettre le fichier libvlc.dll car sinon il me disait qu'il ne pouvait pas resoudre les dependances.
Maintenant que j'ai tout ca, je lance mon programme et j'obtiens l'erreur suivante:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\WINNT\system32\jvlc.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at org.videolan.jvlc.JVLC.<clinit>(JVLC.java:39)
at org.videolan.jvlc.JVLCCanvas.<init>(JVLCCanvas.java:44)
at org.videolan.jvlc.JVLCPanel.<init>(JVLCPanel.java:42)
at javaapplication2.Main.main(Main.java:30)
Avec le code suivant
Qu'est ce qui pourrait manquer ?Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package javaapplication2; import org.videolan.jvlc.*; public class Main { /** Creates a new instance of Main */ public Main() {} public static void main(String[] args) { JVLCPanel jvcc= new JVLCPanel(); JVLC jvlc= new JVLC(); jvlc =jvcc.getJVLCObject(); jvlc.playlist.add("file:///home/poiex/University/pulp.mpg", "pulp.mpg"); jvlc.playlist.play(); } }
Je n'ai pas touche au dossier plugin car je ne sais pas du tout ou le mettre ... :(
Merci beaucoup de votre aide, craque un peu la a tourner en rond ..... :cry:
Salut,
j'ai le même problème... comment est-ce que je peux le solutioner?
Merci d'avant