Видео проигрываеться
This commit is contained in:
@@ -144,10 +144,12 @@ async fn create_file_access(
|
||||
let url = access_config.smb_url.as_ref().unwrap().clone();
|
||||
let user = access_config.smb_user.clone();
|
||||
let password = access_config.smb_pass.clone();
|
||||
let domain = access_config.smb_domain.clone(); // теперь читаем домен
|
||||
let smb_config = SmbAccessConfig {
|
||||
url,
|
||||
user,
|
||||
password,
|
||||
domain,
|
||||
};
|
||||
Ok(Arc::new(SmbFileAccess::new(smb_config)))
|
||||
}
|
||||
@@ -305,6 +307,7 @@ async fn stream_video(
|
||||
State(state): State<AppState>,
|
||||
headers: axum::http::HeaderMap,
|
||||
) -> Result<impl IntoResponse, AppError> {
|
||||
log::info!("Stream video requested: {}", filename);
|
||||
let file_data = state
|
||||
.source_access
|
||||
.read_file(&filename)
|
||||
|
||||
Reference in New Issue
Block a user