ios - radio streaming without MPMoviePlayerController -
i doing small radio shoutcast android , ios kony. fine android ios, creating library play shoutcast.
unfortunatly, seems player of mpmovieplayercontroller need set subview work , unable that.
does know other solution play shoutcast on ios?
i don't know shoutcast imagine similar soundcloud in use api parse stream url? if i'm right in thinking need put url nsurl , make sure tell mpmovieplayercontroller source, so...
radioplayer = [[mpmovieplayercontroller alloc] initwithcontenturl:[nsurl urlwithstring:your_shoutcast_stream_url]]; radioplayer.moviesourcetype = mpmoviesourcetypestreaming;
then play
[radioplayer preparetoplay];
hope helps :)
Comments
Post a Comment