Results 1 to 4 of 4

Thread: How to add time in videoplayer

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

    Default How to add time in videoplayer

    hello guys i am building a videoplayer and i want and time in that so that i will know how much video is player and how much is remaing
    could you please help me in this
    thanks.

  2. #2
    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 add time in videoplayer

    See QMediaPlayer properties "duration" and "position".

    Cheers,
    _
    Last edited by anda_skoa; 22nd August 2014 at 11:16.

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

    Default Re: How to add time in videoplayer

    Ya duration is the property but how to use it to display time.
    Could you please give me example.

  4. #4
    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 add time in videoplayer

    You mean how to convert the number into a string?
    See QString::number() and QString::arg()

    Cheers,
    _

Similar Threads

  1. phonon videoplayer and frame
    By Kethan Kumar in forum Qt Programming
    Replies: 0
    Last Post: 17th February 2012, 06:09
  2. Phonon::VideoPlayer
    By dano_labrosse in forum Newbie
    Replies: 6
    Last Post: 1st February 2012, 07:33
  3. videoplayer problem in qmediaplayer
    By vinayaka in forum Newbie
    Replies: 3
    Last Post: 25th August 2011, 13:44
  4. phonon VideoPlayer refresh
    By rbp in forum Qt Programming
    Replies: 6
    Last Post: 14th November 2008, 02:56
  5. phonon VideoPlayer seek
    By rbp in forum Qt Programming
    Replies: 4
    Last Post: 31st October 2008, 05:53

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.