893052c2a6
A load_error_swf function has been added to the Loader. It makes the MovieClip enter the error state in which some attributes have certain error values to signal that no valid file could be loaded. This happens if no file could be loaded or if the loaded content is no valid supported content. The function creates an error state movie stub using the new SwfMovie::error_movie function (which uses a new default_error_header function) and configures remaining variables with the movie_not_available method. One TODO in order for the error state to be completely implemented has been added. Since the error state of the MovieClip includes the final URL of the SWF file obtained after any redirects, the load_error_swf and movie_loader_error functions (now) take an swf_url attribute. To get this URL in case no file could be loaded, the NavigatorBackend::fetch method has been changed to return an ErrorResponse struct (including the url and the actual error) in the error case. The Response struct returned in the success case has been renamed to SuccessResponse. All fetch implementations have been adapted accordingly. Code has been adjusted to return the actual error where that's needed. Documentation has been added and improved. |
||
---|---|---|
.. | ||
assets | ||
build_playerglobal | ||
macros | ||
src | ||
Cargo.toml | ||
build.rs |