Results 1 to 8 of 8

Thread: how to repeat a part of video in Qt player

  1. #1
    Join Date
    Jul 2014
    Posts
    39
    Qt products
    Qt5
    Platforms
    Windows

    Default how to repeat a part of video in Qt player

    i want to start a video from let say after one min and stop it after 3 min and start the video again from 1 min means like a loop and video is 7 min long.
    Could anyone help me in this.

  2. #2
    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: how to repeat a part of video in Qt player

    Quote Originally Posted by herculis View Post
    i want to start a video from let say after one min and stop it after 3 min and start the video again from 1 min means like a loop and video is 7 min long.
    Could anyone help me in this.
    What have you tried so far?
    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.


  3. #3
    Join Date
    Jul 2014
    Posts
    39
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: how to repeat a part of video in Qt player

    i can use qtimer and when the timer is off i can can call the repeat function but i dont know how qtimer can be connected to mediaplayer so that they both can pass the signal to each other

  4. #4
    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: how to repeat a part of video in Qt player

    Why can't you connect to the positionChanged() signal in QMediaPlayer?
    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. #5
    Join Date
    Jul 2014
    Posts
    39
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: how to repeat a part of video in Qt player

    How to do that?
    actually i am using position changed to update the slider means to move the silder.
    Then also How can i use it can u please explain

  6. #6
    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: how to repeat a part of video in Qt player

    Quote Originally Posted by herculis View Post
    How to do that?
    actually i am using position changed to update the slider means to move the silder.
    Then also How can i use it can u please explain
    If position changed up to where you want to loop the recording, seek back to the start of the loop.
    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. #7
    Join Date
    Jul 2014
    Posts
    39
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: how to repeat a part of video in Qt player

    connect(&mediaPlayer, SIGNAL(positionChanged(7000)),this, SLOT(time()));
    and time is a function which repeats the video but its not woking

  8. #8
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to repeat a part of video in Qt player

    It is very unlikely that QMediaPlayer has a signal with a C++ type "7000" because 7000 is not a valid C++ type identifier.

    It does, however, have a signal positionChanged(qint64).

    Cheers,
    _

Similar Threads

  1. Video player using Qt in VS 2012 c++
    By herculis in forum Qt Programming
    Replies: 1
    Last Post: 31st July 2014, 00:23
  2. Video Player
    By shawshank in forum Newbie
    Replies: 1
    Last Post: 25th April 2014, 22:24
  3. Phonon video player
    By sangee in forum Qt Programming
    Replies: 0
    Last Post: 18th October 2012, 07:15
  4. frame and video player
    By Kethan Kumar in forum Qt Programming
    Replies: 0
    Last Post: 17th February 2012, 09:38
  5. how to set duration of a video in a video player in qt
    By qt_user in forum Qt Programming
    Replies: 1
    Last Post: 7th August 2010, 10:51

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.