NodeMediaClient-iOS
NodeMediaClient-iOS copied to clipboard
Http support?
I try to make http URL work like so:
import UIKit
class ViewController: UIViewController {
var np : NodePlayer?
override func viewDidLoad() {
np = NodePlayer()
np?.playerView = view
np?.contentMode = Int32(UIView.ContentMode.scaleAspectFit.rawValue)
np?.inputUrl = "http://64.53.250.19:8080/mjpg/video.mjpg"
// np?.inputUrl = "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov"
}
override func viewDidAppear(_ animated: Bool) {
np?.start()
}
override func viewDidDisappear(_ animated: Bool) {
np?.stop()
}
}
but without success. RTSP working well though. Is http supported?