2005-08-12, 01:14 PM
Working on a new plugin and having a problem. I am having a bit of trouble playing a shoutcast audio stream.
I am able to connect to the stream and pull down the data. From there I write the data to a file as I receive it. This is all working great. The problem I am having is getting GVPRV to play the file while I am still writing to it. The way I open the file for writing in my code is fine. I can test this by using an outside player to play the file while I am still writing to it from GBPVR. But if I try to play it with:
PluginHelperFactory.getPluginHelper().PlayAudioFile("filename");
The file does not play. Once I stop writing to the file, GBPVR will play it just fine.
Does PlayAudioFile() require exclusive access or is there something I am missing? I know GBPVR can play a file that is being written to because the built in net radio does this.
I am able to connect to the stream and pull down the data. From there I write the data to a file as I receive it. This is all working great. The problem I am having is getting GVPRV to play the file while I am still writing to it. The way I open the file for writing in my code is fine. I can test this by using an outside player to play the file while I am still writing to it from GBPVR. But if I try to play it with:
PluginHelperFactory.getPluginHelper().PlayAudioFile("filename");
The file does not play. Once I stop writing to the file, GBPVR will play it just fine.
Does PlayAudioFile() require exclusive access or is there something I am missing? I know GBPVR can play a file that is being written to because the built in net radio does this.