Page 7 of 11

Re: UMSP Plugin Development

PostPosted: Sat Oct 01, 2011 9:56 am
by mad_ady
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).

Re: UMSP Plugin Development

PostPosted: Sun Oct 02, 2011 11:32 pm
by DJArty
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!

Re: UMSP Plugin Development

PostPosted: Mon Oct 03, 2011 4:38 am
by mad_ady
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.

Re: UMSP Plugin Development

PostPosted: Mon Oct 03, 2011 5:44 am
by DJArty
Thanks.
I know about mount trick but search more careful method.

"test it with osd.bins to see what's changed" - what is it??

Re: UMSP Plugin Development

PostPosted: Mon Oct 03, 2011 5:57 am
by mad_ady
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...

Re: UMSP Plugin Development

PostPosted: Mon Oct 31, 2011 9:28 am
by stanguay
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

Re: UMSP Plugin Development

PostPosted: Mon Oct 31, 2011 9:50 am
by mad_ady
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.

Re: UMSP Plugin Development

PostPosted: Mon Oct 31, 2011 4:34 pm
by shunte
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

Re: UMSP Plugin Development

PostPosted: Wed Nov 02, 2011 7:55 am
by stanguay
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

Re: UMSP Plugin Development

PostPosted: Thu Nov 17, 2011 12:20 am
by DJArty
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.