ruffle/desktop
Aaron Hill 009fab1889 core: Expose `LoaderInfo.parameters` and fix other properties
When using a 'Loader', properties on the 'contentLoaderInfo' become
set during specific events in the load sequence. In particular,
'LoaderInfo.bytesTotal' becomes available during the first 'progress'
event.

Also, 'LoaderInfo.parameters' is now properly set from the URL query
parameters. In Flash player, this work even with filesystem urls
(e.g. 'file:///some/path/to/file.txt?paramOne=valOne' will load
a file named 'file.txt', setting and expose the parameter 'paramOne'
with value 'valOne' in `LoaderInfo.parameters`). This required some
cleanup to the desktop and test NavigatorBackend impls to strip
out query parameters when loading a parameter from disk.

Previously, we would set `SwfMovie.parameters` manually from the url.
Now, the various `SwfMovie` constructors automatically extract
query parameters from the provided url. Outside of `SwfMovie`,
we only append *extra* parameters (e.g. those set from `flashvars`).

This makes CPMStar ads work, since the loaded SWF needs to access
`LoaderInfo.parameters`
2023-07-05 19:47:16 -04:00
..
assets chore: Update translations from Crowdin 2023-07-05 18:57:39 +02:00
packages/macOS/Contents Update Info.plist 2022-12-04 13:54:54 +01:00
src core: Expose `LoaderInfo.parameters` and fix other properties 2023-07-05 19:47:16 -04:00
Cargo.toml chore(deps): lock file maintenance rust dependencies 2023-07-03 08:28:13 +03:00
build.rs Formatting 2023-06-27 21:37:28 +03:00