URL of audio or video playing

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

URL of audio or video playing

Post by anmldr » Mon May 30, 2022 11:11 pm

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

stam
Posts: 3061
Joined: Sun Jun 04, 2006 9:39 pm

Re: URL of audio or video playing

Post by stam » Tue May 31, 2022 1:24 pm

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.

anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Re: URL of audio or video playing

Post by anmldr » Wed Jun 01, 2022 5:55 am

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

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: URL of audio or video playing

Post by SparkOut » Wed Jun 01, 2022 7:19 am

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.

anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Re: URL of audio or video playing

Post by anmldr » Wed Jun 01, 2022 9:57 pm

Most would be on publicly available pages, yes.

Linda

Post Reply