Posts: 7
Joined: Aug 2011
Reputation:
0
Just like to know if it is possible to play video on xbmc as you download them or do you still have wait till the whole media file is fully downloaded? the media is of type "real media"
Sorry for nooby question but how does xbmc player handle the stream given that it is also not 100% fully formed file.
Posts: 793
Joined: Oct 2010
Reputation:
17
It uses the 'Content-Range' http header to only fetch the currently interesting portion of the file from the server. Live streams work basically the same, but the protocol used is different
Posts: 7
Joined: Aug 2011
Reputation:
0
2013-05-20, 01:25
(This post was last modified: 2013-05-20, 01:29 by tweakmy.)
thank you very much for the answer for http
But does it work the same for local file?
What happen is that I am downloading a media file through propietary connection and it is not http(the network stream works like the teamviewer) where they can bypass firewall. Nobody could decode the file transfers method they use. Many had guess but they guess it wrong.
However, I would like to know the possibility of play a local file which is being downloaded? any thoughts.
I tried using ffmpeg to play the file before but ffmpeg do not wait for section/segment(or I dont know how to configure it) and the section/segment where it had not fully completed would become distorted otherwise audio works great.
Posts: 793
Joined: Oct 2010
Reputation:
17
For a local file it uses the OS's seek implementation to jump to the correct part of the file. Unfortunately, if you jump to a part of the file which hasn't been written yet, it gives an error on read which causes it to fail.