hls.js

Chromium - “Failed because the user didn't interact with the document first” in chrome?

两盒软妹~` 提交于 2019-12-12 01:00:00
问题 Ok, autoplay on visit used to work on our site. However now, we are getting: play() failed because the user didn't interact with the document first How come autoplay works on Youtube though? For instance on open video in new tab. Using HLS.js it no longer work. What is Youtube doing that we could do here ? 回答1: The latest version of chrome creates a per domain “score” if a user has interacted with media 20 times on a domain, it is allowed to auto play. If the interaction score is lower, it

hls.js CORS using AWS Cloudfront issues with Cookies

女生的网名这么多〃 提交于 2019-12-06 09:07:59
问题 I'm trying to set up a video streaming using Cloudfront HLS capabilities but I'm having trouble getting Hls.js to send my credential cookies in the request. I already have Cloudfront configured to forward cookies and to forward Access-control headers. I also have set my S3 CORS policies to include GET, HEAD. The problem I'm having is that even though I'm setting the xhr.withCredentials=true and the cookies are defined in the session, when I look at the request using chrome console, I can see