Page 1 of 1

URL of audio or video playing

Posted: Mon May 30, 2022 11:11 pm
by anmldr
When displaying a web page, in a browser widget, that has an embedded audio or video file, when that audio file or video starts playing, is there a way to find it’s URL, copy it and save to the clipboard? Not the URL of the web page but rather the URL of the media file.

Linda

Re: URL of audio or video playing

Posted: Tue May 31, 2022 1:24 pm
by stam
Hi Linda,
Don’t know if you can use the widget directly but if you know the URL then you can scrape the HTML and get at it that way.

S.

Re: URL of audio or video playing

Posted: Wed Jun 01, 2022 5:55 am
by anmldr
stam wrote:
Tue May 31, 2022 1:24 pm
if you know the URL then you can scrape the HTML and get at it that way.
In my question, I should have specified that the web page may have multiple videos or audio files embedded. When one starts playing, is there a way to find out the URL of that particular file?

I assume that you mean “if you know the URL (of the web page) you can scrape the HTML and gets at it that way.”
If there were multiple embedded audio or video files in that web page, how would you scrape the HTML for the file that is playing?

Thank you,
Linda

Re: URL of audio or video playing

Posted: Wed Jun 01, 2022 7:19 am
by SparkOut
It all depends on the architecture of the page. Is it a publicly accessible page, and is there any kind of security, obfuscation or paywall? There may be some effort made by the site owner not to allow direct linking, and even if not, with multiple files to select the chances are a dynamic selection is made through a framework, which will mean it is tricky to tell what is playing at any time.

Re: URL of audio or video playing

Posted: Wed Jun 01, 2022 9:57 pm
by anmldr
Most would be on publicly available pages, yes.

Linda