mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +02:00
UPnP localplay implementation
This commit is contained in:
parent
5d09e7dcad
commit
7463e75204
11 changed files with 1578 additions and 65 deletions
|
@ -18,7 +18,7 @@ $rootMediaItems[] = Upnp_Api::_videoMetadata('');
|
|||
$requestRaw = file_get_contents('php://input');
|
||||
if ($requestRaw != '') {
|
||||
$upnpRequest = Upnp_Api::parseUPnPRequest($requestRaw);
|
||||
debug_event('upnp', 'Request: ' . $requestRaw, '5');
|
||||
//!!debug_event('upnp', 'Request: ' . $requestRaw, '5');
|
||||
} else {
|
||||
echo 'Error: no UPnP request.';
|
||||
debug_event('upnp', 'No request', '5');
|
||||
|
@ -41,9 +41,9 @@ $rootMediaItems[] = Upnp_Api::_videoMetadata('');
|
|||
if ($upnpRequest['browseflag'] == 'BrowseMetadata') {
|
||||
$items[] = array(
|
||||
'id' => '0',
|
||||
'parentID' => '-1',
|
||||
'parentID' => '-1',
|
||||
'childCount' => '2',
|
||||
'dc:title' => T_('root'),
|
||||
'dc:title' => T_('root'),
|
||||
'upnp:class' => 'object.container',
|
||||
);
|
||||
} else {
|
||||
|
@ -100,5 +100,5 @@ $rootMediaItems[] = Upnp_Api::_videoMetadata('');
|
|||
$soapXML = $domSOAP->saveXML();
|
||||
|
||||
echo $soapXML;
|
||||
debug_event('upnp', 'Response: ' . $soapXML, '5');
|
||||
//!!debug_event('upnp', 'Response: ' . $soapXML, '5');
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue