Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/web/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ pub async fn serve_media(

let mut response_builder = Response::builder()
.header(header::CONTENT_TYPE, file_info.mime_type)
.header(header::ACCEPT_RANGES, "bytes");
.header(header::ACCEPT_RANGES, "bytes")
.header("transferMode.dlna.org", "Streaming")
.header("contentFeatures.dlna.org", "DLNA.ORG_OP=11;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000");

let (start, end) = if let Some(range_header) = headers.get(header::RANGE) {
let range_str = range_header.to_str().map_err(|_| AppError::InvalidRange)?;
Expand Down
4 changes: 2 additions & 2 deletions src/web/xml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ pub async fn generate_browse_response_with_totals(

// Use enhanced DLNA flags that support autoplay and streaming
let dlna_flags = if state.config.media.autoplay_enabled {
"DLNA.ORG_PN=;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000"
"DLNA.ORG_PN=;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01700000000000000000000000000000"
} else {
"DLNA.ORG_PN=;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00D00000000000000000000000000000"
"DLNA.ORG_PN=;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=00D00000000000000000000000000000"
};

let item_xml = format!(
Expand Down