I am trying to play an 30 seconds rtsp video in an ios app build in xcode 12.5. Unfortunately i could not find a way to do this. Could anyone give me a plugin or a way to handle this?
Thanks in advance,
Patrick
I am trying to play an 30 seconds rtsp video in an ios app build in xcode 12.5. Unfortunately i could not find a way to do this. Could anyone give me a plugin or a way to handle this?
Thanks in advance,
Patrick
2
Answers
Try VLCKit/MobileVLCKit for this task.
Ok this is kinda old question, but I also found this issue, and there is not too much data out there…
As Dmytro pointed out MobileVLCKit is the best option out there.
I implemented it using swiftui for the interface, so firstly I have to create a UIViewRepresentable to display the stream view
Firstly import MobileVLCKit
Then initiate the Player
And then just add the representable view to a structure, now you can add this structure to wherever you want to display the stream.