Phonon Videoplayer play only full screen



  • Hello,

    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:

    @QString videoFileName;
    videoFileName.append(Config::Instance()->systemVideoPath);
    videoFileName.append(Config::Instance()->adsVideoFileName);
    videoPlayer = new Phonon::VideoPlayer(Phonon::VideoCategory);
    ui->glAds->addWidget(videoPlayer,0,0,0,0,0);
    QFile videoFile(videoFileName);
    if (videoFile.exists()){
    video = Phonon::MediaSource();
    videoPlayer->load(video);
    videoPlayer->videoWidget()->exitFullScreen();
    connect(videoPlayer->mediaObject(),SIGNAL(finished()), this,SLOT(videoAutoRestart()));
    }@

    and then starting the video:

    @
    videoPlayer->show();
    videoPlayer->play();
    videoPlayer->videoWidget()->exitFullScreen();@

    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.


  • Lifetime Qt Champion

    Hi,

    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.


  • Lifetime Qt Champion

    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°


  • Lifetime Qt Champion

    What if you put your video player in a layout inside the parent widget ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.