Skip to main content

screen_convert_file_src_js

Function screen_convert_file_src_js 

Source
pub fn screen_convert_file_src_js(path: &str) -> JsValue
Expand description

Synchronous Tauri helper: convert a local file path into the asset-protocol URL the webview can load via <video src>. Returns the converted string as a JsValue, or JsValue::UNDEFINED when running outside Tauri.