ios - Play a password protected .m3u audio stream with AVPlayer or similar -
i need play password protected .m3u
audio stream within ios app. i've had working avplayer
identical non-password protected stream:
self.player = avplayer.playerwithurl(nsurl(string: "http://<server-here>:<port-here>/live.m3u")!) as! avplayer self.player.play()
however appears @ first glance avplayer
not support kind of authentication.
by putting proxy on connection when using other clients support password protected streams, can see request made stream, fails 401. same request made authentication details in http header , stream request succeeds. it's pretty basic http authentication going on , nothing particularly fancy.
does know of way of achieving using avfoundation
, or have resort low level 3rd party streaming library achieve this?
Comments
Post a Comment