|
NAMENet::UPnP::AV::MediaRenderer - Perl extension for UPnP.SYNOPSISuse Net::UPnP::ControlPoint; use Net::UPnP::AV::MediaRenderer; my $obj = Net::UPnP::ControlPoint->new(); @dev_list = (); while (@dev_list <= 0 || $retry_cnt > 5) { @dev_list = $obj->search(st =>'upnp:rootdevice', mx => 3); $retry_cnt++; } $devNum= 0; foreach $dev (@dev_list) { my $device_type = $dev->getdevicetype(); if ($device_type ne 'urn:schemas-upnp-org:device:MediaRenderer:1') { next; } my $friendlyname = $dev->getfriendlyname(); print "[$devNum] : " . $friendlyname . "\n"; my $renderer = Net::UPnP::AV::MediaRenderer->new(); $renderer->setdevice($dev); $renderer->stop(); $renderer->setAVTransportURI(CurrentURI => 'http://xxx.xxx.xxx.xxx/xxxx.mpg'); $renderer->play(); $devNum++; } DESCRIPTIONThe package is a extention UPnP/AV media server.METHODS
SEE ALSONet::UPnP::AV::ContentNet::UPnP::AV::Item Net::UPnP::AV::Container AUTHORSatoshi Konno skonno@cybergarage.orgCyberGarage http://www.cybergarage.org COPYRIGHT AND LICENSECopyright (C) 2005 by Satoshi KonnoIt may be used, redistributed, and/or modified under the terms of BSD License.
Visit the GSP FreeBSD Man Page Interface. |