NodeMediaClient-iOS icon indicating copy to clipboard operation
NodeMediaClient-iOS copied to clipboard

Http support?

Open dmitrykolesnikovich opened this issue 6 years ago • 0 comments

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?

dmitrykolesnikovich avatar Jan 14 '19 21:01 dmitrykolesnikovich