How to live stream mp3,mp4 file in ios with AFNetworking - ios

i want play a media file with live stream (do not download to App) from server with AFNetworking.
I'm found an e.g code ,but it's not live stream.
https://github.com/AFNetworking/AFNetworking#streaming-request
So, please help me resolve this problem.
Thanks !

Resources on following URL would be of some help.
https://developer.apple.com/streaming/

Related

Facebook Live_videos RTMP streaming

I have successfully got the live video streaming URL from facebook.com using live_videos API. Now i am receiving a URL in the form of RTMP. I don't know how to play that because AVPlayer is unable to do that and i got the library VideoCore which was mentioned somewhere but somehow unable to build that. Anyone have idea?
I have tried https://github.com/jgh-/VideoCore this but unable to compile because of some CocoaPod issue
you can try to use kxmovie!
I hope that would be useful for you!
Comparing to KxMovie, maybe ijkplayer is more suitable for you and it still is developing actively. But KxMovie has more simple code to read. Both are based on FFmpeg. Hope it will help.

How to save your audio files to Voice Memo

I have a compatible m4a file with URL and access to NSData of the audio file itself. How do I save the file to Voice Memo?
For example, I can save an image via UIImageWriteToSavedPhotosAlbum() or UISaveVideoAtPathToSavedPhotosAlbum() for videos.
Thank you!
Short answer is that this is NOT possible. Apple does not provide APIs that can help you with doing this.

How Mobicent Media server plays audio using URL

I want to know details how Mobicent Media server plays audio using URL? In which method it's streaming using URL. For local storage I'm understanding but for remote storage(URL) I'm not getting how it's working. I didn't find anything in the user guide or in website. It will be very helpful if you please inform me details or suggest me any web link.
Thanks.
In order for the Media Server to play a file you need to send a Play signal, where you specify the URL of the file to be played. If the file is local then the URL format will be file://path_to_file/filename.wav; otherwise if the file is hosted remotely then the URL format will be http://something/filename.wav.
Upon receiving the Play request, the Media Server will ask the underlying AudioPlayer to process the URL, first guaranteeing that it is not malformed and that the file type is supported: .wav, .gsm, .tone, .mov, .mp4, .3gp. If all is fine, the player will open a stream to the file right away.
Finally, the AudioPlayer is activated so it can start processing the file and transmitting audio to the remote peer.
You can find a fully detailed discussion about this topic in the mobicents public forum as well (including links to github code):
https://groups.google.com/d/msg/mobicents-public/4zuUOM3zHsM/fQM6o80JEXwJ
Let me know if this helps.
Regards.

listen to RTP audio stream on iOS

there exists the linphone that also includes mediastreamer2 .
i would like to use it to listen to audio-only streams.
i've already set up an asterisk server to start a multicasting call.
in VLC mediaplayer, i am able to hear the streamed audio from this call.
i can not find any examples how to use mediastreamer2 to stream to my iOS app instead of VLC.
any hints would be greatly appreciated.
cheers
UPDATE:
i found the MobileVLCKit to fullfill my dreams :) though i am not happy with this solution as mediastreamer2 should do it too...

Capture video on iOS device and live stream it to a server (or another mobile)

I want to be able to record footage using my iOS device and stream it directly to a server.
There's quite a few articles on S.O. that talk about this, but I'm not sure any have answered the question very well.
Should I be using HTTP Live Streaming, or is this just for sending data to an iPhone?
Should I be using AVCaptureSession to grab the video (a segment at a time?), sending each segment to the server?
Should I be using AVCaptureVideoDataOutput and ffmpeg for streaming?
I'm a little lost with all this, so any sample code or docs or links would be really appreciated.
Thanks for your help guys.
Duncan
You have to choose a network protocol for that purpose and find an appropriate media server to receive and process the stream. If the RTMP format is ok for your project, check angl library which supports RTMP streaming from iOS. Currently it's compatible with iOS 6 and 7.

Resources