Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Phonon Videoplayer play only full screen
I'm using qt 4.8 embedded whith phonon and Phonon:VideoPlayer to play some ads video.
I put the videoPlayer in a grid layout (glAds), this is the snippet:
videoPlayer = new Phonon::VideoPlayer(Phonon::VideoCategory);
video = Phonon::MediaSource();
and then starting the video:
In my desktop environment I get the video played in a portion of the main widget while in the embedded environment the video is played at full screen.
What size is the video ? What OS are you running on your embedded device ? What is the size of the screens (both your desktop and the device) ?
My desktop is a lenovo yoga with ubuntu 14.04 with 3,200x1,800 resolution.
The embedded device is a arm based board running custom linux distro build with yocto. It has a 1,024x600 pixel resolution and use qt embedded with opengl.
I dont' know the video size.
Does your embedded device run a X11 server ?
No it doesn't. Just qt 4.8.6 Embedded.
Just other two infos, the phonon video widget parent is diplayed at full screen and I use gfx-trasformed to rotate the display 90°
What if you put your video player in a layout inside the parent widget ?