Mike Welsh
008f0f596c
core: Clip event slices are from parent movie in PlaceObject
...
Since 19034b7
, clip event scripts are returned as slices from the
SWF. This caused a panic when a movie was loaded into a clip,
because the loaded clip's `movie` would be used as the source for
clip events. However, clip events are placed by the parent's
PlaceObject tags, so the movie in this case should be the parent's
movie.
Fixes #2870 .
2021-01-28 16:36:42 -08:00
Mads Marquart
bb4240ad1f
chore: Add a few comments about unsafe usage
2021-01-28 14:39:35 -08:00
Mike Welsh
a4699a3ca5
audio: Sound transforms apply to stream sounds
...
This unifies the code path for event sounds and stream sounds.
Both `AudioBackend::start_stream` and `start_sound` return a
`SoundHandle`. `stop_stream` is removed (`stop_sound` can be
used for both cases).
Also removes references to `CharacterId` from the `AudioBackend`
(instead, an increasing ID is returned to identiy streams while
loading).
2021-01-27 15:25:04 -08:00
Mike Welsh
95ce2abf17
audio: Remove AudioBackend::stop_sounds_with_handle/is_sound_playing_with_handle
2021-01-27 15:25:04 -08:00
Mike Welsh
da2dd3b36c
core: Implement sound transforms and Sound.setPan
2021-01-27 15:25:04 -08:00
Mike Welsh
34f60b127a
core: Add AudioManager to handle actively playing sounds
...
Add an AudioManager struct to handle this list of actively playing
sounds. This will maintain information for each sound instance,
such as the owning display object, AVM1 object, etc.
This will allow us to implement the awkward AVM1 Sound API in a
fairly backend-agnostic way.
2021-01-27 15:25:04 -08:00
Omar Shehata
218f1f1da5
web: Pause player when tab is inactive ( close #347 )
2021-01-26 22:34:43 -08:00
Adrian Wielgosik
9195491f1b
web: Redesign the context menu
2021-01-26 17:12:43 -08:00
dependabot-preview[bot]
a0159a5efa
build(deps-dev): bump webpack from 5.17.0 to 5.18.0 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.17.0 to 5.18.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.17.0...v5.18.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-26 12:44:56 -08:00
dependabot-preview[bot]
7856cdd3d7
build(deps): bump serde from 1.0.122 to 1.0.123
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.122 to 1.0.123.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 14:14:33 -08:00
dependabot-preview[bot]
9dfe21eda4
build(deps-dev): bump @typescript-eslint/eslint-plugin in /web
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.14.0 to 4.14.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.14.1/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 14:10:31 -08:00
dependabot-preview[bot]
320b54ef57
build(deps-dev): bump @typescript-eslint/parser in /web
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.14.0 to 4.14.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.14.1/packages/parser )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 13:27:01 -08:00
Mike Welsh
44bfd46bf9
chore: Lock wasm-bindgen and wasm-bindgen-cli to 0.2.69
2021-01-25 12:27:21 -08:00
relrelb
aeda974143
web: Rename contextMenu to contextMenuElement
...
Firefox has a read-only "contextMenu" property, so avoid
shadowing it.
2021-01-25 03:51:50 -08:00
relrelb
b07eb07afb
web: Revert config removal
2021-01-25 03:51:50 -08:00
relrelb
5827801b03
web: Rename config.showContextMenu to config.contextMenu
2021-01-25 03:51:50 -08:00
relrelb
70326108b9
web: Rename "right click menu" to "context menu"
2021-01-25 03:51:50 -08:00
relrelb
21b0128bca
web: Add option to disable the context menu
2021-01-25 03:51:50 -08:00
Andrew Larson
f34bdb045d
demo: Fix player not being destroyed when None is selected
...
Fix issue with duplicate instances in web demo when sample SWF
is unloaded.
2021-01-25 03:31:24 -08:00
dependabot-preview[bot]
64983cde22
build(deps): bump serde from 1.0.121 to 1.0.122
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.121 to 1.0.122.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-24 17:26:09 -08:00
dependabot-preview[bot]
86b4c20809
build(deps): bump serde from 1.0.120 to 1.0.121
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.120 to 1.0.121.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-23 14:12:08 -08:00
relrelb
0ea7b857cf
demo: Lint index.js
2021-01-22 09:19:26 -08:00
relrelb
0349d90fcd
demo: Add drag-and-drop functionality
2021-01-22 09:19:26 -08:00
relrelb
3fb58580c5
web: Add stylelint
2021-01-22 09:12:48 -08:00
dependabot-preview[bot]
62d6698056
build(deps-dev): bump webpack from 5.16.0 to 5.17.0 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.16.0 to 5.17.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.16.0...v5.17.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-22 09:10:52 -08:00
Mike Welsh
78f85d96f0
chore: Remove some debug spew
2021-01-21 18:22:42 -08:00
Maxwell DeKock
b2594b2b6c
web: Fix error in demo when selecting None for sample ( close #2416 )
2021-01-21 18:05:12 -08:00
Toad06
dc2b4fcc42
web: Use enum instead of arbitrary values
2021-01-20 15:03:52 -08:00
Toad06
bc47bfb9e9
web: Display appropriate errors when Ruffle fails to initialize
2021-01-20 15:03:52 -08:00
dependabot-preview[bot]
7decb91918
build(deps-dev): bump @wdio/cli from 6.12.0 to 6.12.1 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.12.0 to 6.12.1.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.12.0...v6.12.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-20 14:34:57 -08:00
dependabot-preview[bot]
0ab35edc06
build(deps-dev): bump @wdio/local-runner from 6.12.0 to 6.12.1 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 6.12.0 to 6.12.1.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.12.0...v6.12.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-20 14:05:26 -08:00
Adrian Wielgosik
b69e17bf35
web: Allow customizing log level
2021-01-19 18:10:35 -08:00
dependabot-preview[bot]
75967e3775
build(deps-dev): bump webpack from 5.15.0 to 5.16.0 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.15.0 to 5.16.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.15.0...v5.16.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-19 14:03:48 -08:00
dependabot-preview[bot]
a56b1bff5a
build(deps-dev): bump chromedriver from 87.0.5 to 87.0.7 in /web
...
Bumps [chromedriver](https://github.com/giggio/node-chromedriver ) from 87.0.5 to 87.0.7.
- [Release notes](https://github.com/giggio/node-chromedriver/releases )
- [Commits](https://github.com/giggio/node-chromedriver/compare/87.0.5...87.0.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-19 10:10:16 -08:00
dependabot-preview[bot]
a271e437bc
build(deps-dev): bump eslint-config-prettier from 7.1.0 to 7.2.0 in /web
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v7.1.0...v7.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-19 10:10:07 -08:00
dependabot-preview[bot]
4a27fb9832
build(deps-dev): bump sign-addon from 3.1.0 to 3.2.0 in /web
...
Bumps [sign-addon](https://github.com/mozilla/sign-addon ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/mozilla/sign-addon/releases )
- [Commits](https://github.com/mozilla/sign-addon/compare/3.1.0...3.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-19 09:47:16 -08:00
dependabot-preview[bot]
9a84972a70
build(deps-dev): bump @typescript-eslint/eslint-plugin in /web
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.13.0 to 4.14.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.14.0/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-18 22:33:37 -08:00
dependabot-preview[bot]
0ae2212adf
build(deps-dev): bump @typescript-eslint/parser in /web
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.13.0 to 4.14.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.14.0/packages/parser )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-18 22:06:55 -08:00
Mike Welsh
da1e2801a2
chore: Appease clippy
2021-01-18 21:23:50 -08:00
Mike Welsh
c2b768c453
web: Fallback to instantiate with improper MIME type
...
Use --target web in wasm-bindgen and file-loader for WASM files,
allowing wasm-bindgen's built-in fallback from
WebAssembly.instantiateStreaming to instantiate.
file-loader spits out the WASM file directly in the output folder,
and imports will resolve to the URL, so that we can load the file
directly, avoiding webpack's built-in wasm loaders.
This allows Ruffle to function on web servers even if they serve
WASM files with the incorrect MIME type, fixing one of our biggest
support requests (#400 , #1458 ). There is some performance impact
on loading with the fallback, but this is preferable to not
working at all.
2021-01-16 15:30:11 -08:00
dependabot-preview[bot]
9df7facdb8
build(deps-dev): bump eslint from 7.17.0 to 7.18.0 in /web
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.17.0 to 7.18.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.17.0...v7.18.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-15 16:25:47 -08:00
TÖRÖK Attila
2858faaaf2
web: Drop wasm-pack, invoke wasm-bindgen and wasm-opt directly from npm ( #2482 )
2021-01-15 12:59:25 -08:00
dependabot-preview[bot]
e952cd485b
build(deps-dev): bump webpack from 5.14.0 to 5.15.0 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.14.0 to 5.15.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.14.0...v5.15.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-15 11:30:25 -08:00
Toad06
5ed30303eb
web: Remove event listeners when a Ruffle instance is destroyed
2021-01-14 13:06:37 -08:00
dependabot-preview[bot]
c1c1c59bb5
build(deps-dev): bump webpack from 5.13.0 to 5.14.0 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.13.0 to 5.14.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.13.0...v5.14.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-13 16:39:12 -08:00
Mike Welsh
9bb36885bb
web: Add backgroundColor option and support bgcolor attribute
...
Add `backgroundColor` setting to the config options, allowing
a user to override the background color of an SWF. The polyfill
will now look for the `bgcolor` HTML attribute on the embed
and fill in this setting appropriately.
2021-01-13 11:57:19 -08:00
dependabot-preview[bot]
671a01ed39
build(deps-dev): bump @wdio/local-runner from 6.11.3 to 6.12.0 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 6.11.3 to 6.12.0.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.11.3...v6.12.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-13 01:56:38 -08:00
dependabot-preview[bot]
d08947c91b
build(deps-dev): bump @wdio/cli from 6.11.3 to 6.12.0 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.11.3 to 6.12.0.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.11.3...v6.12.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-13 01:56:22 -08:00
dependabot-preview[bot]
73d1230910
build(deps-dev): bump webpack from 5.12.3 to 5.13.0 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.12.3 to 5.13.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.12.3...v5.13.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-11 15:38:09 -08:00
Toad06
0d7f64aa67
web: Only run JS scripts when `allowScriptAccess` is true
2021-01-11 13:16:00 -08:00