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. [Solved] Unable to display Video using Phonon
Forum Updated to NodeBB v4.3 + New Features

[Solved] Unable to display Video using Phonon

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 637 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.
  • H Offline
    H Offline
    Himanshu Rohilla
    wrote on last edited by
    #1

    Dear All,

    I want to display a video on QWidget. For that, i am trying following code

    @QGridLayout *grid = new QGridLayout(this);
    grid->setSpacing(20);

    Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
    
    grid->addWidget(player, 1, 0, 3, 1);
    
    player->play(Phonon::MediaSource("D:\\Himanshu\\Media\\Kailasa.mp4"));
    
    
    setLayout(grid);@
    

    I write this code in constructor of class. This code is compiling without any error. But, It does not display any video. Player is visible on widget but it is display in white color.

    Thnx in advance.

    HImanshu Rohilla

    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