NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 69 70 71 72 73 … 93 Next »
Play audio stream

 
  • 0 Vote(s) - 0 Average
Play audio stream
mthornton
Offline

Junior Member

Posts: 18
Threads: 9
Joined: May 2005
#1
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.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,676
Threads: 767
Joined: Nov 2003
#2
2005-08-12, 04:34 PM
Unfortunately, its a bit of a hack. GB-PVR will only use my special "playback of files which are still growing" filters if the name contains "gbnetradio". I do this for two reasons (1) music files usually arent still growing (2) the filter in question is a little less reliable than the normal microsoft playback filters, so I only use when I absolutely have to.
mthornton
Offline

Junior Member

Posts: 18
Threads: 9
Joined: May 2005
#3
2005-08-13, 01:49 AM
Cool beans. I have it working now. Thanks Sub.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  API channel.stream.start mvallevand 2 1,294 2023-05-07, 09:40 PM
Last Post: mvallevand
  IPTV like stream from Sound Card input - FM Radio Project NumberFive 3 1,354 2022-11-20, 04:28 PM
Last Post: mvallevand
  Get recording length from stream skogl 46 13,705 2019-08-15, 09:34 PM
Last Post: sub
  Switching Audio Channels spitefulgod 0 1,997 2016-12-15, 08:42 PM
Last Post: spitefulgod
  Touch and http audio url's mvallevand 0 1,407 2013-11-03, 07:05 PM
Last Post: mvallevand
  Audio Renderers imilne 3 2,209 2011-09-29, 09:08 PM
Last Post: imilne
  MVP accessuble audio idkpmiller 3 2,146 2009-09-25, 11:59 PM
Last Post: idkpmiller
  BASS - Getting Audio Data for Spectrum Analysis/Display ralphy 3 4,560 2009-02-15, 08:00 AM
Last Post: whurlston
  embedded metadata stream on recordings made by GB-PVR? reven 7 2,813 2008-12-23, 01:12 PM
Last Post: carpeVideo
  Video play queue request. whurlston 2 1,714 2008-12-17, 08:12 PM
Last Post: whurlston

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode