×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Angry Phonon VideoPlayer and UDP stream

    Hello,

    I am trying to get the Phonon VideoPlayer to display a video that is being streamed to a UDP port (VLC media player is streaming the video to that port). I get nothing but a black screen. I have successfully displayed a video loaded from file, but that won't do. For some reason, Phonon source is not distributed with the open source release I am using, so I can not check the code. I get the impression this is a non-functional thread; I would have hoped for an error though. Can anyone help? Thanks!

    My cool code:

    int main(int argc, char *argv[]) {
    QApplication app(argc, argv);
    QHostAddress address("localhost");
    QUdpSocket *device = new QUdpSocket();;
    device->bind(address, 1234);
    Phonon::MediaSource mediaSource(device);
    Phonon::VideoPlayer vp(Phonon::VideoCategory);
    vp.load(mediaSource);
    vp.play();
    vp.show();
    return app.exec();
    }

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Phonon VideoPlayer and UDP stream


  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Re: Phonon VideoPlayer and UDP stream

    Thanks. I went through the code and I didn't see any accesses to the port. It appears to expect pre-existing files only; local or remote.

    Bummer.

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Phonon VideoPlayer and UDP stream

    As you probably know, Phonon is only a wrapper for platform dependent backends. Thus, specifying the platform is a relevant information here.

  5. #5
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Re: Phonon VideoPlayer and UDP stream

    Target platform is Windows XP.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×