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. QMediaPlaylist - display image with custom timeout / elapsed time
Forum Updated to NodeBB v4.3 + New Features

QMediaPlaylist - display image with custom timeout / elapsed time

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 717 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.
  • D Offline
    D Offline
    darbor
    wrote on last edited by
    #1

    Hello
    I work on QT5.2.1 (windows 8.1)
    I try create simple slider to video and images

    @

    playlist = new QMediaPlaylist;
    player = new QMediaPlayer;
    videoWidget = new QVideoWidget;

    playlist->addMedia(QUrl("video1.mp4")); // duration 15secound
    playlist->addMedia(QUrl("image1.jpg")); // I would like 10 seconds
    playlist->addMedia(QUrl("video2.mp4")); // duration 20secound
    playlist->addMedia(QUrl("image2.jpg")); // I would like 10 seconds

    playlist->setPlaybackMode(QMediaPlaylist::Loop);
    player->setPlaylist(playlist);
    player->setVideoOutput(videoWidget);
    player->play();

    @

    When i run this program i see video1.mp4 (15 secound) after i see image1.jpg but only 0.5secound and after
    video2.mp4 (20 secound) and image2.jpg (only 0.5secound)

    How can i set custom duration for image1.jpg and image2.jpg??

    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