Hi there!
I was wondering if when a <video>
tag retrieves a video from a URL if it contains anything in the request that could identify it as a <video>
tag or not as a user.
Eddie
Hi there!
I was wondering if when a <video>
tag retrieves a video from a URL if it contains anything in the request that could identify it as a <video>
tag or not as a user.
Eddie
You might be able to use the user agent header:
I’ll have a look
You could try this:
var video = document.getElementById("videotag");
video.onloadeddata = function() {
// Do Something
};
I haven’t tried, but maybe you could figure it out from the Accept header.
You can check if the request is coming from another domain using the Origin header I think to prevent hotlinking
This tells me either video or document depending on the request
request.headers["sec-fetch-dest"]