Skip to content

Commit

Permalink
VLC UPnP client does not work if responce start with: "<?xml version=…
Browse files Browse the repository at this point in the history
…"1.0" encoding="UTF-8"?>",

this is v1 behavior, but at least v3 and v4 have this string in examples.
  • Loading branch information
rozhuk-im committed Dec 16, 2017
1 parent 364fe3b commit b28c21d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions www/upnp/control/ContentDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ function GetServiceResetToken() {
function Browse($ObjectID, $BrowseFlag, $Filter, $StartingIndex, $RequestedCount,
$SortCriteria) {
global $basedir, $baseurl, $file_class, $baseurlpatch;
$Result = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" .
"<DIDL-Lite\n" .
$Result = "<DIDL-Lite\n" .
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n" .
" xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\"\n" .
" xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\"\n" .
Expand Down Expand Up @@ -616,8 +615,7 @@ function Browse($ObjectID, $BrowseFlag, $Filter, $StartingIndex, $RequestedCount
function Search($ContainerID, $SearchCriteria, $Filter, $StartingIndex, $RequestedCount,
$SortCriteria) {
global $basedir, $baseurl, $file_class, $baseurlpatch;
$Result = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" .
"<DIDL-Lite\n" .
$Result = "<DIDL-Lite\n" .
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n" .
" xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\"\n" .
" xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\"\n" .
Expand Down

0 comments on commit b28c21d

Please sign in to comment.