Fix a crash when playing online video
Add https support