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 mad_ady » Sat Oct 01, 2011 9:56 am

If I remember correctly, info.php was introduced this spring to offer a better integration with WEC. config.php is pre-WEC and is kept for backward compatibility (it's the same file for all plugins; it has no plugin-specific data).
User avatar
mad_ady
Developer
 
Posts: 4525
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin Development   

Postby DJArty » Sun Oct 02, 2011 11:32 pm

Hello!
Any workaround something like addExtraContent(page, extraContent) from WDTVExt via php UMSP?
Need on the fly change osd xml from UMSP php plugin (not WDTVExt .js)

May be via DomDocument, but main question how its work with read-only /osd/*? Or may be don't need save Dom xml and just add elemenst?
So need substitute read-only /osd/*.xml with temporary my xml

Thank you!
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; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: UMSP Plugin Development   

Postby mad_ady » Mon Oct 03, 2011 4:38 am

In order to override an XML with a different one on a read-only filesystem you can copy the xml to /tmp, edit it in place with sed and then mount it on top of the original xml
Code: Select all
mount -o bind /tmp/copy.xml /osd/original.xml


You will have to be careful not to do this every time (e.g. when you run the php code again, you need to check if it was already edited). And also, you may need to test it with osd.bins to see what's changed.
User avatar
mad_ady
Developer
 
Posts: 4525
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin Development   

Postby DJArty » Mon Oct 03, 2011 5:44 am

Thanks.
I know about mount trick but search more careful method.

"test it with osd.bins to see what's changed" - what is it??
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; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: UMSP Plugin Development   

Postby mad_ady » Mon Oct 03, 2011 5:57 am

Surely you know about custom OSDs: http://forum.wdlxtv.com/viewtopic.php?f=45&t=5123
The mount trick is an accepted way of overriding files... It is used all the time - during ext3 booting or osd loading... It's just you'll have to run the mount command through sudo from within UMSP, since UMSP runs as apache...
User avatar
mad_ady
Developer
 
Posts: 4525
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin Development   

Postby stanguay » Mon Oct 31, 2011 9:28 am

Hello,
I am not familiar with the UMSP but I have a question.
I have the Colossus video capture card (not usb) from Hauppauge and I can stream the capture live on the web with the WinTV software that comes with (Wintv Extended server).
I only need to enter my password on the web browser and can see the TV live on the web, it is like SlingBox. The format look like, Http://ip_ addresse :port/

Is it possible to see this stream on WDLXTV with some UMSP plug-in or something else?

Thank you
stanguay
Donor
 
Posts: 3
Joined: Tue Nov 16, 2010 12:32 pm

Re: UMSP Plugin Development   

Postby mad_ady » Mon Oct 31, 2011 9:50 am

Streaming is difficult with the wdtv. The limitations are that it takes about 1 minute for the video to start playing and the video will interrupt after about 18 minutes (if I remember correctly). You need to find out in what format you are streaming before you begin (you need to find out the container and the codecs used). If they are supported, you could partially use it with the wdtv.
User avatar
mad_ady
Developer
 
Posts: 4525
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin Development   

Postby shunte » Mon Oct 31, 2011 4:34 pm

there are a couple of plug-ins in the repository that work with various tuner protocols

check out the Dreambox e2 and eyeTV plug-ins - they may be close to what you need

if your device uses DVB-T, pretty much everywhere but the US, then you'll probably have a lot more success than ATSC/QAM - I gave up after a week :?

startup times can be problematic but while I've never seen the 18 minute issue with the half dozen or so streaming plug-ins I've written its been mention on a handful of occasions, so... I guess it must be real... anyways YMMV
If you like the work I do please feel free to make a donation to the Red Cross
User avatar
shunte
Developer
 
Posts: 420
Joined: Sun Sep 19, 2010 1:43 am
Location: Cambridge, MA U. S. and A.

Re: UMSP Plugin Development   

Postby stanguay » Wed Nov 02, 2011 7:55 am

Thanks you shunte,

I tried both and they are not working and my programming skill is too limited to understand the code and modify it.

Thanks anyway for your reply
stanguay
Donor
 
Posts: 3
Joined: Tue Nov 16, 2010 12:32 pm

Re: UMSP Plugin Development   

Postby DJArty » Thu Nov 17, 2011 12:20 am

Ok. Continuing the conversation.
Using mount for xml substitution, but...
If menuItem selected and video start to play - any changes of xml on the fly do not showing. (for video_run.xml etc.)
If change xml before menuItem selected ("Enter" or "Play" pressed) and video start to play then new content showing ok.
But new content of xml depends on the selection. WDTVExt do addExtracontent to xml on the fly, but mount can't do this.
Any chance to solve the problem? (preselection, proxy, etc.)
Thank you.
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; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

PreviousNext

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 1 guest