python - Phonon: how to clear screen after video plays -


i writing program audio-visual experiments, present pre-generated list of audio-only , video-with-audio stimuli experiment subjects. have decided use pyqt , phonon this, despite fact i'm new writing qt-based programs (and gui programming in general).

the issue i'm having that, when previous file played video (.mov in case), , current file audio-only (.wav file), image last frame of video file remains on screen while audio file playing. video image remains until next .mov file rolls around in stimulus list.

is there way clear phonon screen, in order show empty black screen while audio-only files playing? i've done fair bit of poking around google, , though question has been asked number of people on different forums, seems have gone unanswered.

any suggestions appreciated!

this seems bug, or missing feature, , it's hard come workaround.

one hacky solution force resize of video widget:

    size = self.video.size()     self.video.resize(0, 0)     self.video.resize(size) 

but wouldn't bet on working on platforms.

a more reliable workaround put video-widget inside container widget black background, , hide/show video-widget when stopping/starting media.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -