Hello,
My application is a Set-Top-Box demo. I'm using Phonon VideoPlayer to simply put a looping video on the screen. Easy to add a key event handler to support play/pause/mute/exit from the keyboard. Mouse swipes enable channel changing, and mouse drag up/down enable volume changing. (Demo is for a position-aware wireless remote whose dongle enumerates as a mouse and keyboard - think "Wii remote")
I'd like to display widgets on the screen in front of the video (example - volume indicator or mute indicator). In the simplest case, if I create a QSlider and parent it to the player's videoWidget(), it can be shown and hidden as expected, however its background is black. That is, the video does not show through the normally transparent background of the widget.
So I thought about writing my own slider, and using the render() method to paint my slider's background to match the underlying video. However, there is no newVideoFrame() or similar signal I can connect to which would let me trigger this on the end of a new video frame. The tick() signal does not seem to be synced to the frame (feature request).
I'd also like to put heads-up text and other things on the screen while the video plays in the background. None of these things are rectangular.
Is my design just something that Phonon:VideoWidget or MediaObject will not support? If not, tell me how to let the video shine through! If so, suggest some other solution. Thanks!
dvb
Bookmarks