Author Topic: iOS, Pause stream  (Read 803 times)

X-Vlad

  • Posts: 15
iOS, Pause stream
« on: 14 May '15 - 08:21 »
Hi,

I'm playing stream used "BASS_StreamCreateURL(aURL, 0, BASS_STREAM_BLOCK or BASS_STREAM_STATUS or BASS_STREAM_AUTOFREE or BASS_UNICODE, @StatusProc, nil);"
How I can pause stream (when user tap pause button)

Thanks.
« Last Edit: 14 May '15 - 12:31 by X-Vlad »

Ian @ un4seen

  • Administrator
  • Posts: 20400
Re: iOS, Pause stream
« Reply #1 on: 14 May '15 - 13:40 »
BASS_ChannelPause can be used to pause playback, but it's generally not a good idea to pause an internet stream because the server may close the connection due to a lack of activity. In this case, it would probably be better to mute the stream instead by setting BASS_ATTRIB_VOL to 0 via BASS_ChannelSetAttribute.

X-Vlad

  • Posts: 15
Re: iOS, Pause stream
« Reply #2 on: 15 May '15 - 08:26 »
Thank you!