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. Video Playback with QMediaPlayer in Qt QNX
Forum Updated to NodeBB v4.3 + New Features

Video Playback with QMediaPlayer in Qt QNX

Scheduled Pinned Locked Moved Mobile and Embedded
qnxwidget applicatqmediaplayerqvideowidgetvideoplayback
2 Posts 2 Posters 1.8k Views 2 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.
  • N Offline
    N Offline
    Nitar
    wrote on last edited by Nitar
    #1

    Hello,

    I am really new to Qt development. Now, I am trying to do video playback with Qt for QNX,x86 platform. Below is my code. When I test those codes in windows, the video can play immediately as a loop. But, I have to wait about 30 seconds to play the video again in QNX.

    QMediaPlaylist *playlist = new QMediaPlaylist(this);
    playlist->addMedia(QUrl::fromLocalFile("D:\test.mp4"));
    playlist->addMedia(QUrl::fromLocalFile("D:\test.mp4"));
    playlist->addMedia(QUrl::fromLocalFile("D:\test.mp4"));
    playlist->setCurrentIndex(0);
    playlist->setPlaybackMode(playlist->Loop);

    QMediaPlayer *player = new QMediaPlayer(this);
    player->setPlaylist(playlist);
    
    QVideoWidget *videoWidget = new QVideoWidget(this);
    player->setVideoOutput(videoWidget);
    videoWidget->setGeometry(80,50,600,300);
    videoWidget->show();
    player->play();
    

    Any of you encounter this issues before ?
    Do you have any suggestions to solve this kind of problems?

    Thank you so much.

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

      Hi and welcome to devnet,

      QNX support is an Enterprise feature, you should contact the Qt Company through your Qt Account Support Center.

      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