RTSP with iOS 8
Solution 1
SOLVED
We found a RTSP player essentially that we were able to just incorporate it easily into our project.
[edit: This requires to purchase their license :( , currently it is not working and throws error: Error Domain=com.imoreapps.avplayer.errordomain Code=-149]
Solution 2
Have you tried with MobileVLCKit
? it's really easy and work well!
I wrote a small example here: https://github.com/rvi/ONVIFCamera
If you want to try it, just type pod try ONVIFCamera
in your terminal.
Here is how to do it:
var mediaPlayer = VLCMediaPlayer()
// Associate the movieView to the VLC media player
mediaPlayer.drawable = self.movieView
let url = URL(string: "rtsp://IP_ADDRESS:PORT/params")
let media = VLCMedia(url: url)
mediaPlayer.media = media
mediaPlayer.play()
Shack
Updated on June 04, 2022Comments
-
Shack almost 2 years
My partner and I are developing an app for a client where they have a camera that connects to the app. Currently it is running in http but we want to use RTSP. We scraped the internet today to look for possible ideas, but they all seem outdated.
We tried incorporating DFURTSPPlayer but kept getting compile errors that were related to the actual SDK.
We want to use something like VideoStreamSDK.
Does anyone have any ways they can point us towards?
Thanks!