Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Phonon Videoplayer play only full screen
Forum Updated to NodeBB v4.3 + New Features

Phonon Videoplayer play only full screen

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rspock
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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) ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rspock
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Does your embedded device run a X11 server ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rspock
            wrote on last edited by
            #5

            No it doesn't. Just qt 4.8.6 Embedded.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rspock
              wrote on last edited by
              #6

              Just other two infos, the phonon video widget parent is diplayed at full screen and I use gfx-trasformed to rotate the display 90°

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

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

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved