RayGyoe / apple-http-osmf

Automatically exported from code.google.com/p/apple-http-osmf
0 stars 0 forks source link

HTTPS support #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I made a small change to make streaming over HTTPS work, perhaps this should be 
merged into the repo.
In HTTPStreamingM3U8IndexHandler.as:
70c70
<                       if(_indexString.toLowerCase().indexOf("http://") != 0)

---
>                       if((_indexString.toLowerCase().indexOf("http://") != 0)
&& (_indexString.toLowerCase().indexOf("https://") != 0))
139c139
<                                               if(String(lines[i]).toLowerCase(
).indexOf("http://") == 0)

---
>                                               if((String(lines[i]).toLowerCase
().indexOf("http://") == 0) || (String(lines[i]).toLowerCase().indexOf("https://
") == 0))
164c164
<                                               if(String(lines[i]).toLowerCase(
).indexOf("http://") == 0)

---
>                                               if((String(lines[i]).toLowerCase
().indexOf("http://") == 0) || (String(lines[i]).toLowerCase().indexOf("https://
") == 0))

Original issue reported on code.google.com by bal...@medizza.com on 19 Sep 2011 at 1:27

GoogleCodeExporter commented 8 years ago
Good idea. Change made.

Original comment by atmatthewat@gmail.com on 8 Jun 2012 at 6:14