Page 1 of 1
Chromium.LoadUrl
Posted: Sat Apr 12, 2025 8:24 am
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
Re: Chromium.LoadUrl
Posted: Sat Apr 12, 2025 1:23 pm
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.
Re: Chromium.LoadUrl
Posted: Wed Apr 16, 2025 8:05 am
by coater
Thank you very much! Thanks!
Re: Chromium.LoadUrl
Posted: Sat Apr 19, 2025 3:52 am
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.