xcode - Can you stream from a HTTPS server using HLS? -


i'm wondering wether or not it's possible stream https server using hls, using following code -

let url = nsurl(string:"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8")         let player = avplayer(url: url!)         let playercontroller = avplayerviewcontroller()          playercontroller.player = player         self.addchildviewcontroller(playercontroller)         self.view.addsubview(playercontroller.view)         playercontroller.view.frame = self.view.frame          player.play() 

i can stream http server, when changed url url of company's server doesn't work, difference video of company has https in it's url , apple's sample video doesn't, i'm testing on emulator in xcode

yes, can stream hls https server. hls streams transfered on http , https http on tls , of time transparent client. thing need support https in player major ones have.

https://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 not working because devimages.apple.com certificate invalid. browse url using browser. warn , give additional information wrong.

i guess problem company server same - wrong or self-signed certificate.

another quick way validate https server user curl. example:

curl "https://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8" 

complains with:

curl: (51) ssl: no alternative certificate subject name matches target host name 'devimages.apple.com' 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -