Skip to content

avm2: Implement several of the AV classes - #24350

Open
ChrisCPI wants to merge 2 commits into
ruffle-rs:masterfrom
ChrisCPI:avm2-av-classes
Open

avm2: Implement several of the AV classes#24350
ChrisCPI wants to merge 2 commits into
ruffle-rs:masterfrom
ChrisCPI:avm2-av-classes

Conversation

@ChrisCPI

@ChrisCPI ChrisCPI commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Description

Implements several of the flash.media.AV- classes that only hold properties with no real functions. Also fixes a minor bug where AVNetworkingParams.appendRandomQueryParameter did not have the correct default value.

Testing

The avm2/av_classes test has been added, testing all of the new classes, as well as ones that were already implemented. The av_networking_params and av_tag_data tests have been removed, as the things that they test have been moved into this new test.

Checklist

  • I, a human, have self-reviewed this PR and fully understand the changes within.
  • I have made or updated tests where possible.
  • All of my commits are properly scoped, compile successfully, and pass all tests.
  • This PR does not make sense to split up into smaller PRs.
  • An LLM was involved in the authoring of this code.

@ChrisCPI ChrisCPI added A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player labels Aug 2, 2026
Comment thread core/src/avm2/globals/flash/media/AVABRParameters.as Outdated
Implements several of the `flash.media.AV`- classes that only hold properties with no real functions. Also fixes a minor bug where `AVNetworkingParams.appendRandomQueryParameter` did not have the correct default value.
Adds the `avm2/av_classes` test, testing almost all of the currently implemented AV classes that only hold properties. The `av_networking_params` and `av_tag_data` tests have been removed, as the things that they test have been moved into this new test.
@ChrisCPI
ChrisCPI requested a review from evilpie August 2, 2026 14:05
Comment thread tests/tests/swfs/avm2/av_classes/Test.as
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants