Skip to content

Commit

Permalink
web: Switch to ExternalVideoBackend with the webcodecs feature
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Oct 2, 2024
1 parent 540e896 commit f4edc57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ruffle_web_common = { path = "common" }
ruffle_render = { path = "../render" }
ruffle_render_webgl = { path = "../render/webgl", optional = true }
ruffle_render_wgpu = { path = "../render/wgpu", optional = true }
ruffle_video_software = { path = "../video/software" }
ruffle_video_external = { path = "../video/external", features = ["webcodecs"] }
url = { workspace = true }
wasm-bindgen = { workspace = true }
wasm-bindgen-futures = "0.4.43"
Expand Down
4 changes: 2 additions & 2 deletions web/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use ruffle_core::{
};
use ruffle_render::backend::RenderBackend;
use ruffle_render::quality::StageQuality;
use ruffle_video_software::backend::SoftwareVideoBackend;
use ruffle_video_external::backend::ExternalVideoBackend;
use ruffle_web_common::JsResult;
use std::cell::RefCell;
use std::collections::HashMap;
Expand Down Expand Up @@ -647,7 +647,7 @@ impl RuffleInstanceBuilder {
let core = builder
.with_log(log_adapter::WebLogBackend::new(trace_observer.clone()))
.with_ui(ui::WebUiBackend::new(js_player.clone(), &canvas))
.with_video(SoftwareVideoBackend::new())
.with_video(ExternalVideoBackend::new())
.with_letterbox(self.letterbox)
.with_max_execution_duration(self.max_execution_duration)
.with_player_version(self.player_version)
Expand Down

0 comments on commit f4edc57

Please sign in to comment.