-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change HTTP Referer #1
Comments
The only reason MSE would make that possible is because using MSE requires you to make the XMLHttpRequest to fetch the video file data yourself, and so you could change the headers of your own XMLHttpRequest. However if you're just trying to play back an MP4 file and change the headers, using MSE would be overkill and would take a ton of work. If the server that hosts the video file you're trying to play is blocking referrers other than their own domain, then they probably don't want you playing their content on another site and you shouldn't be trying to. Otherwise if you have a legitimate reason for accessing the content, your best be would be to download the video and host it on a sever you control. (I think this issue can be closed) |
i can't download video, because i don't have enough space... |
Media Source Extensions is not involved with fetching the video data. That is up to the web application and is usually achieved via XMLHttpRequest as @heff says. Changing certain headers in an XMLHttpRequest is controlled by CORS. Look at the XMLHttpRequest & CORS specs to figure out whether they will let you change the Referer. My guess is that they won't, but you should double check. |
Closing this issue since it isn't a problem with the MSE spec. |
My player use Media Source Extensions, i would change the Headers (Referer) to a external video , how i can do it? ( i've asked and people tell me, i can change the Headers only with MSE)
The text was updated successfully, but these errors were encountered: