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. Troubleshooting Phonon::VideoPlayer

Troubleshooting Phonon::VideoPlayer

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

    Hey there!

    I was hoping to get some additional help figuring out what I'm doing wrong using the Phonon::VideoPlayer widget. I've gone through the available documentation on the wiki and have even attempted to use the sample code from the class reference but I can't pinpoint my issue.

    I think my problem lies with my video not loading, but I'm not sure. I've checked that the video files I'm attempting to load actually play via Windows Media Player, and I've attempted to load them in the 3 different ways I know how.

    @
    //My Load Function that happens when we arrive on the page containing the widget
    {
    m_VideoPlayer = new Phonon::VideoPlayer(Phonon::VideoCategory, videoPlayer);
    m_VideoPlayer->setMinimumSize(videoPlayer->width(), videoPlayer->height());
    m_VideoPlayer->setMaximumSize(videoPlayer->width(), videoPlayer->height());

    //video_filename.c_str()
    m_VideoPlayer->load(Phonon::MediaSource("//Resources//videos//capture_old.wmv"));

    QObject::connect(m_VideoPlayer, SIGNAL(finished()), this, SLOT(slot_playerFinished()));
    QObject::connect(m_VideoPlayer, SIGNAL(finished()), m_VideoPlayer, SLOT(deleteLater()));
    }

    void VideoWidget::playVideo() {
    m_PlayerFinished = false;

    m_VideoPlayer->play();
    }@

    Tips and suggestions welcome as always!

    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