Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Chromium.LoadUrl

Post Reply
coater
Posts: 187
Joined: Sat Sep 29, 2018 1:51 pm

Chromium.LoadUrl

Post by coater »

1.If I want to do something when Chromium.LoadUrl was called how to do it?
such as:
before_LoadNewUrl
begin
...
end

Is it possible? Thank you!

2. May I get url of .MP4 loaded in the web? Which can be seen in devtool-network.
These cannot obtain:
Chromium_OnBeforeBrowse
Chromium_OnResourceLoadComplete
Chromium_OnBeforeResourceLoad
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Chromium.LoadUrl

Post by salvadordf »

coater wrote: Sat Apr 12, 2025 8:24 am 1.If I want to do something when Chromium.LoadUrl was called how to do it?
such as:
before_LoadNewUrl
begin
...
end

Is it possible? Thank you!
You can use the TChromiumCore.OnBeforeBrowse event.
coater wrote: Sat Apr 12, 2025 8:24 am 2. May I get url of .MP4 loaded in the web? Which can be seen in devtool-network.
These cannot obtain:
Chromium_OnBeforeBrowse
Chromium_OnResourceLoadComplete
Chromium_OnBeforeResourceLoad
See if the NetworkTrackerBrowser demo show the URL of that MP4 file. It uses DevTools commands to intercept all network traffic.
coater
Posts: 187
Joined: Sat Sep 29, 2018 1:51 pm

Re: Chromium.LoadUrl

Post by coater »

Thank you very much! Thanks!
coater
Posts: 187
Joined: Sat Sep 29, 2018 1:51 pm

Re: Chromium.LoadUrl

Post by coater »

Hello, Chromium_OnAddressChange is better then OnBeforeBrowse! If I click a link in the web to download a file, OnBeforeBrowse will be triggered but OnAddressChange not.
Post Reply