I am having serious trouble opening, actually finding, any kind of Video Files with IntelliJ.
The files are in a folder called "data" in my Project Directory. In the Project Structure S开发者_StackOverflow中文版ettings I made sure the Folder is recognized as Source. Then I even declared my *.mov & *.mp4 files as new Filetypes.
But still when I am trying to load the video like:
mov = new GSMovie(p, "camel.mov"); or even
mov = new GSMovie(p, "data/camel.mov");
It doesn't find it.
I also tried different libarays. and keep getting:
File camel.mov does not exist. Please check location.
Actually I just found out that it is looking in the IDEA app binary itself.
The JMC-Video for Processing:
Media unavailable: file:/Applications/IntelliJ%20IDEA%2010%20CE.app/bin/data/look321.mp4
It works if I copy my files now there, but this can't be right.
It feels like I am doing something fundamentaly wrong, but I just can't see it. thanx, for any help.
You should add *.mp4
and *.mov
to Settings|Compiler|Resource Patterns
Set the working directory to the project root in the Run/Debug configuration.
精彩评论