HTML5 Video from a Password Protected directory in Safari

大城市里の小女人 提交于 2020-01-14 04:02:08

问题


Has anyone had a similar problem, and have found a solution?

I have a page in a password protected directory that I would like to show video on, using the HTML5 video tag (with video.js, video tag is correct, and all fallback formats are included so no issue there). The problem is that Safari does not seem to play the video files when they are in the same PW protected directory, while all other browsers do. As soon as I move the vid files are out of the PW protected directory it plays fine.

Any thoughts / solutions?


回答1:


I had a very similar problem and found an answer here:

https://discussions.apple.com/thread/2448777?start=0&tstart=0

Your problem is an authentication error with Safari, Quicktime X, and HTTP basic authorization. If you check the box to remember the password in keychain then the movie plays in Safari.

Once I had Mac OS's keychain remember the password in Safari, my MP4 videos began playing in my password-protected directories!



来源:https://stackoverflow.com/questions/13016204/html5-video-from-a-password-protected-directory-in-safari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!