Results 1 to 7 of 7

Thread: Playing an mp3 while it is downloading

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Playing an mp3 while it is downloading

    I'd imagine you would do the same as if the file was being retrieved from over the network (which is, in effect, what is happening)

    As for buffering, you would know that yourself. You will know how much of the file has been read and how much you have received from the network. However, I wouldn't worry about it, if you run out of data theres not much you can do.

    I'm not sure how well this kind of technique will work with MP3 files - typically you seek to the end of an MP3 to search for an ID3 tag before seeking back to the start to play the file. I don't know if Phonon does this, but if it does, maybe you would need to emulate this behavior (possibly with fake information, knowing the file type being retrieved of your I/O interface)

  2. The following user says thank you to squidge for this useful post:

    bittuthegr8 (7th March 2011)

Similar Threads

  1. Playing file with Phonon while stil downloading it.
    By alexandernst in forum Qt Programming
    Replies: 3
    Last Post: 10th April 2011, 12:25
  2. About FTP uploading and downloading
    By prats in forum Qt Programming
    Replies: 2
    Last Post: 1st March 2011, 12:28
  3. Downloading files
    By MTK358 in forum Newbie
    Replies: 3
    Last Post: 23rd June 2010, 01:08
  4. Problem with downloading a webpage
    By Fenix Voltres in forum Newbie
    Replies: 2
    Last Post: 25th June 2009, 20:55
  5. Downloading from a clean url
    By travlr in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2007, 22:55

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
  •  
Qt is a trademark of The Qt Company.