Jump to content


Photo

Download And Play Flv Files


  • Please log in to reply
No replies to this topic

#1 Red Head

Red Head

    X-S Enthusiast

  • Members
  • 7 posts

Posted 06 February 2008 - 04:28 PM

Is it possible to download a flv file and start playing this file as soon as lets say 1MB is downloaded?

Now i just download the whole file so the user has to wait quite some time

CODE

                self.download(str(el.firstChild.nodeValue), folder + "test.flv")
                xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play(folder + "test.flv")
...
    def download(self, source, destination):
        try:
            loc = urllib.URLopener()
            loc.retrieve(source, destination)
            self.showMessage("Download complete!")
        except:
            self.showMessage("Failed downloading!")

or can xbmc just a play a url like http://....babla.flv (mm shoud ve tried that first tongue.gif )

if you have suggestions or examples ... smile.gif

tnx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users