Hi Jules,
I display a QuicktimeMovieComponent on my window, It show the quictimecontroller at times but not always.
It shows.
Doesn’t show.
It’s the same piece of code. More often than not It doesn’t show the controller.
This is my code
ComponentHolder::ComponentHolder()
{
_pQuickTimeComponent = new juce::QuickTimeMovieComponent();
addAndMakeVisible(_pQuickTimeComponent);
_pButton = new juce::TextButton(T("Load"),T("Load"));
_pButton->addButtonListener(this);
addAndMakeVisible(_pButton);
}
void ComponentHolder::resized()
{
if (_pQuickTimeComponent != 0L)
_pQuickTimeComponent->setBounds(40,40,getWidth() - 80,getHeight() - 80);
if (_pButton != 0L )
_pButton->setBounds(20,20,80,20);
}
void ComponentHolder::buttonClicked (juce::Button *button)
{
juce::URL url(urlString);
juce::InputStream * stream = url.createInputStream (true);
if (stream != 0L && _pQuickTimeComponent != 0L)
{
bool status = _pQuickTimeComponent->loadMovie (stream,true);
while(! _pQuickTimeComponent->isMovieOpen()); // waiting for movie to load
_pQuickTimeComponent->play ();
}
}