Can I specify a URL that returns redirects to the video tag src or source?

Asked 2 months ago, Updated 2 months ago, 5 views

Is it possible to set the src of the video tag with a URL that returns the URL to the original video source with redirects such as 300?If possible, is there anything I should be careful about, such as CORS?

html5 video streaming

2022-09-30 11:39

1 Answers

Yes.

In principle, resources in HTML support redirect.(spec) If the result is redirected to a resource, the browser will go to the redirected URL to view the result.

As a reminder,

Also, if the redirect destination is a cross-origin URI, the same care should be taken as normal cross-origin access.For example,


2022-09-30 11:39

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.