Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMediaPlayer - "Internal data flow error."
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer - "Internal data flow error."

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmediaplayervideo
1 Posts 1 Posters 879 Views
  • 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.
  • redevil5kR Offline
    redevil5kR Offline
    redevil5k
    wrote on last edited by
    #1

    Hello.

    I am trying to read a video input in Linux (Ubuntu 16.04 LTS) using QMediaPlayer. The video is read and show fine. However after some random time i constantly get this error:
    Error: "Internal data flow error." and my video stops showing. By opening the video again it resumes as usual.

    The code I used to confirm the error:

    MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent)
        , ui(new Ui::MainWindow)
        , player(0, QMediaPlayer::VideoSurface) //QMediaPlayer
        , videoItem(0) // QGraphicsVideoItem
    {
        ui->setupUi(this);
    
        videoItem = new QGraphicsVideoItem;
        QGraphicsScene *scene = new QGraphicsScene(this);
        ui->graphicsView->setScene(scene);
        scene->addItem(videoItem);
        player.setVideoOutput(videoItem);
        player.setMedia(QUrl("v4l2:///dev/video0"));
        player.play();
    }
    

    What could be causing this error and how can I resolve it without automatically calling the video on QMediaPlayer::StoppedState?

    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