ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.76k stars 821 forks source link

error on preloading with embedded-flv swf #17170

Open rosefloase opened 4 months ago

rosefloase commented 4 months ago

Describe the bug

there's a loading screen on this swf that appears when the full swf has not fully loaded, but the user has attempted to start video playback. when using ruffle, the loading screen doesn't display, and instead plays a choppy, slowed down version of the embedded video

Expected behavior

a loading screen should appear when the window is clicked, but the file isn't fully loaded. (checks are done via loaderInfo.bytesTotal and loaderInfo.bytesLoaded, video is stored WITHIN the swf.) image

Content Location

https://thepersonever.net/pikmin/halo/ce/img/mission1/1.swf

Affected platform

Browser's extension

Operating system

windows 10

Browser

librewolf 115.9.1esr-1

Additional information

this video is for a webpage i'm working on. when viewing this flash on the page, you're able to play the swf before it finishes loading, even when reloading the page. (link)

rosefloase commented 4 months ago

ive since edited the page to include ruffle standalone, and to show a ruffle loading bar when using it. this isn't a permanent fix though-i would prefer to have a preloader within the flash so i can style it without relying on css

rosefloase commented 4 months ago

wow! i thought that was a toggle! i might be stupid

n0samu commented 4 months ago

the loading screen doesn't display

That's because Ruffle doesn't begin playing SWFs until they are fully downloaded. Streaming playback will need to be implemented later.

instead plays a choppy, slowed down version of the embedded video

I don't know what you're talking about. Ruffle's behavior appears to be the same as Flash's when the SWF is fully downloaded.

rosefloase commented 4 months ago

https://github.com/user-attachments/assets/27b70621-1880-45cc-ad84-bb6465ad8230 here, i've temporarily disabled the splash screen. you can see that the preloader does not work when using ruffle's web extension. for now, i have set ruffle to only play swfs once fully loaded, but that was not my original intent

http://www.mspaintadventures.com/newindex.php?s=6&p=003840 this site has animations with working preloaders. however, they do not use flvs, and are created in actionscript 2. this is why i believe this is an error