Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js: Radio streaming Api [closed]

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.

like image 550
Abdullah Aziz Avatar asked Oct 30 '22 20:10

Abdullah Aziz


1 Answers

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;
    }
like image 184
Mughees Musaddiq Avatar answered Nov 15 '22 06:11

Mughees Musaddiq