Results 1 to 9 of 9

Thread: Phonon+seek

  1. #1
    Join Date
    Jul 2007
    Location
    BY.Minsk
    Posts
    90
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Phonon+seek

    May be can help me...
    The method seek () doesn't work

    I check:
    Qt Code:
    1. bool bOk = mediaObject-> isSeekable ();
    To copy to clipboard, switch view to plain text mode 
    Returns false.

    But widget SeekSlider Works and allows to change video position!
    Qt Code:
    1. mediaObject = ui.vpPreview->mediaObject();
    2. mediaObject->setTickInterval(20);
    3. ui.seekSlider->setMediaObject(ui.vpPreview->mediaObject());
    4. ui.seekSlider->show();
    5. connect(mediaObject, SIGNAL(tick(qint64)), this, SLOT(state(qint64)));
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Phonon+seek


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

    Fastman (8th September 2010)

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Phonon+seek

    Your code doesn't have to do anything with seekability. Are you sure you stated the problem correctly?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #4
    Join Date
    Jul 2007
    Location
    BY.Minsk
    Posts
    90
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default

    Quote Originally Posted by tbscope View Post
    Yes, you're right. Thank you very much.

    Quote Originally Posted by wysota View Post
    Your code doesn't have to do anything with seekability. Are you sure you stated the problem correctly?
    I just showed how to bind a slider to video widget.
    When on form drag slider - it works.
    tbscope correctly pointed out to me that the video does not immediately become a mode seekable, but only after a full load.
    I have it checked - it is really true.
    Last edited by wysota; 8th September 2010 at 09:32.

  6. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Phonon+seek

    Quote Originally Posted by Fastman View Post
    I just showed how to bind a slider to video widget.
    When on form drag slider - it works.
    tbscope correctly pointed out to me that the video does not immediately become a mode seekable, but only after a full load.
    I have it checked - it is really true.
    Ok, the code you posted was simply incomplete. You forgot one connect statement
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #6
    Join Date
    Jul 2007
    Location
    BY.Minsk
    Posts
    90
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Phonon+seek

    Quote Originally Posted by wysota View Post
    Ok, the code you posted was simply incomplete. You forgot one connect statement
    Hmmm... what is wrong ?
    I would be glad if correct me

  8. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Phonon+seek

    The code doesn't implement any reaction on value changes of the slider, it only reacts on heartbeats of the media object.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #8
    Join Date
    Jul 2007
    Location
    BY.Minsk
    Posts
    90
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Phonon+seek

    Quote Originally Posted by wysota View Post
    The code doesn't implement any reaction on value changes of the slider, it only reacts on heartbeats of the media object.
    Thx for answer wysota.
    But, i see in http://doc.qt.nokia.com/4.6/phonon-s...r.html#details
    and test in my app.
    SeekSlider responds to changes (when I move the sliders with the mouse)
    I currently still do not have to.

  10. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Phonon+seek

    Oh, my fault... I somehow missed the setMediaObject() call in your code when I looked at it before.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. The following user says thank you to wysota for this useful post:

    Fastman (8th September 2010)

Similar Threads

  1. phonon seek does not work as i want?
    By mismael85 in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2011, 09:10
  2. How to use the QFile::seek() in Qt-4.4.3
    By grsandeep85 in forum Qt Programming
    Replies: 2
    Last Post: 3rd April 2010, 11:54
  3. phonon VideoPlayer seek
    By rbp in forum Qt Programming
    Replies: 4
    Last Post: 31st October 2008, 04:53
  4. sqlite seek() bug?
    By ibergmark in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2008, 07:44

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.