Hi,
thatās crazy, in my Demo Runner nothing happens if I press the load button ā¦
I tried 3 different Juce versions. I will try to compile the video demo with Projucer, but need to find all the headers (windows.h) etcā¦
thanks
Jens
Hi there,
Video.h in Demo-App isnāt working on my windows 10 and Windows Server 2012 (strato) ā¦ the buttons have no function, unable to load a video file.
is there someone which has the same problem ?
Hi,
I modified the video demo to open the file-chooser directly. And see it works :-))
It only plays ā.wmvā - format at this moment. But great, it works
For other formats (mov & mp4) there can be downloaded special codecs I guess ? The load-buttons in the video-demo are really not working on my computers !
@jensomat did you ever figure out what the problem is? I have the exact same issue, same jassertfalse getting hit. Iām even having the same trouble with the Video demo on Windows.
If you are trying .mov files I would assume you need Quicktime installed. It is a Codec prominently used by apple, but windows installers are available, so the platform video component, that is used, should be able to use Quicktime.
WMV is a container format, like almost every modern video format. So chances are it needs an extra codec installed. Can you please:
verify that the video file is not corrupt, by playing in windows media player
if it doesnāt play you need to install the codec or the file is broken
you can still double check with VLC, which is often more forgiving than other players
The VideoComponent uses the same engine like the WindowsMediaPlayer, so if it doesnāt play there, it canāt play in your app.
I am hesitant to claim the opposite statement though
Iāve tested playing the video in WMP, everything loads and runs correctly. still hitting that jassertfalse however.
the URL is returning that it is well-formed (itās just a C:\ absolute path), does it perhaps need to be in a special scheme for windows? like āfile://ā?
Can you pst exactly the jassert you are hitting and the surrounding code?
Is there a comment?
That is the normal way, how to deal with jasserts:
the designer wanted to rule something out, or wanted to make sure, some pre-conditions are met. Then work your way back, trying to understand, why that variable is not supposed to be in the state, that halted the execution.
To anyone interested, there appears to be an interval of time you have to wait when setting up the VideoComponent on Windows. On my application, at least, a spinner appears when the component is first drawn to the screen. When the spinner disappears, it is safe to load the content.