6

I am working on a project in which i have to make Api for radio streaming by which user can listen radio stream from his mobile application not web. Please let me know if there is any framework in Node.js which can stream my audio file to mobile clients in real time.

I have a look on Binary.js but I am not sure it can deal with my mobile clients. Anyone please guide me on this.

Jonas
  • 121,568
  • 97
  • 310
  • 388
Abdullah Aziz
  • 700
  • 5
  • 11

2 Answers2

2

Try to use STK-on-iOS

Simply create an object and pass your Radio streaming URL. I hope it'll help.

in .h file create object

STKAudioPlayer*  audioPlayer;

In .m file

if (isRadioOn == YES)
    {
        [self.audioPlayer pause];
        isRadioOn = NO;
    }
    else
    {
        self.audioPlayer = [[STKAudioPlayer alloc] init];
        [self.audioPlayer play:@"http://Your URL here/;stream.mp3%20&13202692901&duration=99999&id=scplayer&autostart=true"];
        isRadioOn = YES;
    }
Mughees Musaddiq
  • 1,060
  • 1
  • 10
  • 27
0

I am working on a project in which i have to make Api for radio streaming by which user can listen radio stream from his mobile application not web.

It makes no difference. Your mobile app can play HTTP progressive streams just like the web page can. You can also use HLS.

Don't use web sockets, there is no reason for that complexity and overhead.

Brad
  • 159,648
  • 54
  • 349
  • 530