Sign up here and you can log into the forum!

UMSP Plugin Development

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

Re: UMSP Plugin Development   

Postby DJArty » Sat Jun 18, 2011 5:01 am

By the way ...
Current viewmode can be monitored by DMA_MOVIE_BROWSEMODE key (/conf/config) ;)
So... not so bad.
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413
User avatar
DJArty
Developer
 
Posts: 547
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: UMSP Plugin Development   

Postby mad_ady » Sun Jun 19, 2011 8:07 am

So, can't it be changed the same way? Or maybe DMAOSD doesn't read it on each page refresh...
User avatar
mad_ady
Developer
 
Posts: 4570
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin Development   

Postby adhanju » Mon Aug 15, 2011 4:35 pm

Hi,

Could anybody please help me play the following stream using wdtv umsp.

http://radio3.sikhnet.com:80/sikhnetradio-channel9.high.mp3

I could play this stream on VLC but couldn't get it working on wdtv.

I am running out of ideas. :roll:

Thanks.
Arookie.
adhanju
n00b
 
Posts: 13
Joined: Tue Oct 12, 2010 8:48 pm

Re: UMSP Plugin Development   

Postby b-rad.cc » Mon Aug 15, 2011 4:48 pm

did you attempt to search first?

play mp3 with umsp
:roll:
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3003
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: UMSP Plugin Development   

Postby adhanju » Wed Aug 17, 2011 6:55 pm

Yep, tried searching but couldn't find a solution. The following is what I tried but playing it would cause wdtv to hang.

Code: Select all
$myMediaItems[] = array(   
   'id'         => strval(count($myMediaItems)+1),
   'parentID'      => '0',
   'dc:title'      => 'Audio Test 1',
   'upnp:class'   => 'object.item.audioItem',
   'res'         => 'http%3A%2F%2Fradio2.sikhnet.com%3A8020%2Fstream',
   'protocolInfo'   => 'http-get:*:audio/x-mpegurl:*',
);

$myMediaItems[] = array(   
   'id'         => strval(count($myMediaItems)+1),
   'parentID'      => '0',
   'dc:title'      => 'Audio Test 2',
   'upnp:class'   => 'object.item.audioItem',
   'res'         => 'http://radio3.sikhnet.com:80/sikhnetradio-channel9.high.mp3',
   'protocolInfo'   => 'http-get:*:audio/x-mpegurl:*',
);



Any ideas how to troubleshoot it. Is it possible to play this stream in wdtv using command line to check if wdtv can even play it.
adhanju
n00b
 
Posts: 13
Joined: Tue Oct 12, 2010 8:48 pm

Re: UMSP Plugin Development   

Postby b-rad.cc » Wed Aug 17, 2011 8:20 pm

you should probably be using http-get:*:audio/mpeg:* or perhaps http-get:*:*:* for auto-detection as your protocolInfo.
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3003
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: UMSP Plugin Development   

Postby mad_ady » Thu Aug 18, 2011 4:43 am

Also, try with a non-urlencoded stream as well:
Code: Select all
'res' => 'http://radio2.sikhnet.com:8020/stream'


The UMSP code usually hates ampersands, so your URL should be ok.
User avatar
mad_ady
Developer
 
Posts: 4570
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin Development   

Postby PaulF » Thu Sep 15, 2011 11:36 pm

I have a php program that follows redirects and prints html headers in php array format . The program stops dumping arrays when there is no "Location" redirect site. It also looks like it is a two channel Icecast stream http get type audio/mpeg (try like Shoutcast maybe?).
Code: Select all
Array
(
    [0] => HTTP/1.1 301 Moved Permanently
    [Date] => Fri, 16 Sep 2011 06:57:58 GMT
    [Server] => Array
        (
            [0] => Apache/2.2.3 (CentOS)
            [1] => Icecast 2.3.2
        )

    [Location] => http://radio2.sikhnet.com:8020/stream
    [Content-Length] => 328
    [Connection] => close
    [Content-Type] => Array
        (
            [0] => text/html; charset=iso-8859-1
            [1] => audio/mpeg
        )

    [1] => HTTP/1.0 200 OK
    [icy-br] => Array
        (
            [0] => 32
            [1] => 32
        )

    [ice-audio-info] => ice-samplerate=44100;ice-bitrate=32;ice-channels=2
    [icy-description] => Live Kirtan From Sri Harmandir Sahib
    [icy-genre] => Gurbani Kirtan
    [icy-name] => Sri Harmandir Sahib, Amritsar
    [icy-pub] => 0
    [icy-url] => www.sgpc.net
    [Cache-Control] => no-cache
)
Array
(
    [0] => HTTP/1.0 200 OK
    [Content-Type] => audio/mpeg
    [icy-br] => Array
        (
            [0] => 32
            [1] => 32
        )

    [ice-audio-info] => ice-samplerate=44100;ice-bitrate=32;ice-channels=2
    [icy-description] => Live Kirtan From Sri Harmandir Sahib
    [icy-genre] => Gurbani Kirtan
    [icy-name] => Sri Harmandir Sahib, Amritsar
    [icy-pub] => 0
    [icy-url] => www.sgpc.net
    [Server] => Icecast 2.3.2
    [Cache-Control] => no-cache
)
User avatar
PaulF
Developer
 
Posts: 427
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

Re: UMSP Plugin Development   

Postby eskay » Sat Sep 17, 2011 10:59 am

adhanju wrote:Hi,

Could anybody please help me play the following stream using wdtv umsp.

http://radio3.sikhnet.com:80/sikhnetradio-channel9.high.mp3

I could play this stream on VLC but couldn't get it working on wdtv.

I am running out of ideas. :roll:

Thanks.
Arookie.

HI,
I tried the url given by you but unable to play....
But then i went to the parent site http://www.sikhnet.com/radio and am able to play channel 1. (http://184.154.167.195:8010/stream ) and 2 (http://radio2.sikhnet.com:8012/stream) But one thing is strange is kind of hit / miss.. most of time plays but some time other way around.
PaulF wrote:It also looks like it is a two channel Icecast stream http get type audio/mpeg (try like Shoutcast maybe?).
And yes i had to use shoutcast way...
So if you want I can add all the Channel of this site on IndianMusic plugin....ofcourse one which works :D
User avatar
eskay
Developer
 
Posts: 130
Joined: Mon Aug 02, 2010 12:56 pm
Location: SWITZERLAND

Re: UMSP Plugin Development   

Postby avkiev » Sat Oct 01, 2011 1:05 am

funcs-config.php:
Code: Select all
...
$pluginConfigFile = (is_file('/tmp/umsp-plugins/' . $pluginId . '/info.php')?'/tmp/umsp-plugins/' . $pluginId . '/info.php':'/tmp/umsp-plugins/' . $pluginId . '/config.php');
...

So, now plugin-config - is info.php ? Not config.php ? Why ? What is the reason ?
avkiev
Developer
 
Posts: 167
Joined: Tue Apr 27, 2010 5:02 am
Location: Ukraine, Kiev

PreviousNext

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 1 guest