2008-10-16, 16:22
I have a python script that is streaming a mpg file from a source and saving it locally to play on the xbmc.Player. I had planned to play the file while still writing to it, but the Player gives me the following error when trying to play: ERROR: CDVDPlayer::OpenInputStream - error opening [filename]. If I close the file before playing it works fine. The file was opened using open(filename,"wb"). I am assuming that either the open function or the Player's open is not allowing sharing for the file. (testing on Window, haven't moved to the XBox to test if it is a quark with the Windows port)
Is there anyway to write to a file and play it? Or is there another way to pump a stream to the player?
Is there anyway to write to a file and play it? Or is there another way to pump a stream to the player?