Results 1 to 4 of 4

Thread: Problem with the signals emitted in Phonon

  1. #1
    Join Date
    Jul 2012
    Location
    Paris, France
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4

    Default Problem with the signals emitted in Phonon

    Hi,

    I display a video using the Phonon module with PyQt, and I created a play/pause button.
    The problem is when I want to get the totalTime of the mediaObject() :

    Just after setting the source of the video, I can't get the totalTime() of the mediaObject() (it returns 0), it's normal since it is necessary to wait for the totalTimeChanged signal to get this time. But I tried to connect this signal to a custom function, and it never seems to be emitted ... However, when I pause the video, I can get this totalTime(), so I don't understand ...

    Do you have a way to fix it ?

    Thanks

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    29
    Thanked 50 Times in 47 Posts

    Default Re: Problem with the signals emitted in Phonon

    I dont know python. But see this warning:-

    Warning: The total time is not defined before the media object enters the LoadingState.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

  3. The following user says thank you to sonulohani for this useful post:

    Valsylver (30th July 2012)

  4. #3
    Join Date
    Sep 2011
    Posts
    1,241
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3
    Thanked 127 Times in 126 Posts

    Default Re: Problem with the signals emitted in Phonon

    jso you just have a problem with signal/slot connection. have you debugged this connection?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  5. The following user says thank you to amleto for this useful post:

    Valsylver (30th July 2012)

  6. #4
    Join Date
    Jul 2012
    Location
    Paris, France
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4

    Default Re: Problem with the signals emitted in Phonon

    It works, I made a mistake in the connection. Thanks for your replies

Similar Threads

  1. [SOLVED] Two signals emitted, only one slot called!
    By codeverse in forum Qt Programming
    Replies: 0
    Last Post: 11th August 2010, 16:46
  2. signal emitted when I zoom
    By mastupristi in forum Qwt
    Replies: 1
    Last Post: 8th July 2009, 18:02
  3. problem with changed() signal emitted by QGraphicsScene
    By sanjayshelke in forum Qt Programming
    Replies: 1
    Last Post: 29th April 2009, 14:55
  4. Signal emitted more than once?
    By dbrmik in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2009, 13:44
  5. QThread and signals (linux/UNIX signals not Qt Signals)
    By Micawber in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2007, 23:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.