diff --git a/src/js/mod.rs b/src/js/mod.rs index b0ea3833..f51d377c 100644 --- a/src/js/mod.rs +++ b/src/js/mod.rs @@ -9,7 +9,11 @@ pub mod wasp { extern "C" { type WaspHlsPlayer; - fn buildPlayer(videoElement: JsValue, config: JsValue) -> WaspHlsPlayer; + fn buildPlayer( + videoElement: JsValue, + initialBandwidth: f64, + config: JsValue, + ) -> WaspHlsPlayer; #[wasm_bindgen(method)] fn load(this: &WaspHlsPlayer, url: &str); @@ -42,10 +46,24 @@ pub mod wasp { pub struct WaspHlsPlayerW(WaspHlsPlayer); impl WaspHlsPlayerW { - pub fn new(video_element: &HtmlElement