Jump to content

Any way to get the URL with this code?


Recommended Posts

I'm trying to get the live stream (.mpd) URL using "File_Get_Contents" with JS but I get a "304 Not Modified" status code.
Is there any way to get it or it's not possible? I can do it with PHP but then the url only works locally.

function file_get_contents(filename) {
    fetch(filename).then((resp) => resp.text()).then(function(data) {
        url = JSON.parse(data);

Thank you in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...