MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
Thread Tools Display Modes
Old 2004-09-27, 18:00   #1 (permalink)
spo
Portal Member
 
Join Date: Sep 2004
Location: Denmark, 56.0500N 10.0000E
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts


Default Web Interface......

I had been waiting for areal web interface - and there have been some trying to solve this - but none (as I know) has, what I want.

Therefore I am working on something for myself at the moment - but I will like to share it with others - if interest?

There still things to do - first of all the the Radio, Videos and Photos part of the web - but hopefully I will be finished with the first version in a week or so.

Just to show a little of the work until now:

My program listning (sorry - it's danish):


My schedule function:


My music:


Recordings:


and recorded:


Let me know if you can use it or not - maybee you have some ideas for further implementations.

And yes: I know the theme is a copy from somewhere....
spo is offline   Reply With Quote
Old 2004-09-27, 18:07   #2 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Canada
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via MSN to jadz
Default

Can you give some technical details on what you are doing.

You have PHP pages reading the XML files that mediaportal uses. What features are currently working for you?
__________________
jadz|www
WinLIRC plugin | Startup Utility Plugin
<- outdated
jadz is offline   Reply With Quote
Old 2004-09-27, 18:17   #3 (permalink)
Retired Team Member
 
Join Date: Sep 2004
Location: Canada
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts


Default

It would be neat if MP had web services to use. Therefore it leaves it open to any type of UI and custom applications to interact with MP.

p.s. looks really good.
devo is offline   Reply With Quote
Old 2004-09-27, 18:17   #4 (permalink)
spo
Portal Member
 
Join Date: Sep 2004
Location: Denmark, 56.0500N 10.0000E
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts


Default

A little technical infos.....

I'm using php to build the pages, and to access the sqlite bases, where all the MediaPortal stuff is stored.

Until now this works:

listnings: can see all available in the base, can see which is scheduled for recording and of course change the schedules or create new ones.

recordings: can check what have been recorded, and what should be recorded in the future, and remove them here to, if I don't want to record them anyway.

recorded: can see everything recorded, and if compressed in post process I am able to watch them over the web.

music: Go through all my mp3 files (directory listning based on artist and album) and play them over the web. Playlists are not implemented yet.
spo is offline   Reply With Quote
Old 2004-09-27, 18:49   #5 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Canada
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via MSN to jadz
Default

Does MP need to be aware when you update the database? Or does it poll it to check for pending recordings ?
__________________
jadz|www
WinLIRC plugin | Startup Utility Plugin
<- outdated
jadz is offline   Reply With Quote
Old 2004-09-27, 18:53   #6 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 36
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

Quote:
Does MP need to be aware when you update the database?
Yes.

Quote:
Or does it poll it to check for pending recordings ?
No

frodo
frodo is offline   Reply With Quote
Old 2004-09-27, 19:19   #7 (permalink)
spo
Portal Member
 
Join Date: Sep 2004
Location: Denmark, 56.0500N 10.0000E
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Good point jadz

We need a way to get 'OnRecordingsChanged' changed.... :cry:

But for me this is not a big problem

I only plan to use the web interface when not home. And it will be easy to make changes made on the web handle a little stop/start of Media Portal to get the bases read again.

But of course it would be nice if we could tell Media Portal that something has changed.
spo is offline   Reply With Quote
Old 2004-09-28, 08:06   #8 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Sweden
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts


Default

This looks what I needs (wants). I'll be happy if its possible to use Your work.
regards /gabbe
gabbe is offline   Reply With Quote
Old 2004-09-28, 13:08   #9 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by spo
music: Go through all my mp3 files (directory listning based on artist and album) and play them over the web. Playlists are not implemented yet.
Hi spo, nice looking app.

Just a question, what do you mean by "play them over the web"? Do you mean you can make MP play them on the MP computer (that is, control MP using the web interface)? Or do you mean you can stream them over the network to the computer you are browsing on and play them there?

The reason I'm asking this is that there seems to be some requests for a web service to control MP (e.g. tell it to re-read the recording database, play a specific song, change settings, etc). I'm thinking of using .NET remoting or MSMQ to accomplish this, but I don't have much time so I don't think I will start this. Any one else wanna have a crack? .net remoting or MSMQ should do the trick. I'm thinking of having a non-GUI plugin in MP that the web service can communicate with.

This web service will make your web interface work properly and have more features, plus it may open doors for a pocket pc controlling app.

my 2 cents

Sam
samuel337 is offline   Reply With Quote
Old 2004-09-28, 15:56   #10 (permalink)
spo
Portal Member
 
Join Date: Sep 2004
Location: Denmark, 56.0500N 10.0000E
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hi samuel337 and others.....

What I'm able to with my little web thing, is to get in touch with all (most of) the stuff back home on my MP - meaning I can listening and see the stuff through a browser client - but not control directly, what's going on at home. Scheduling of new program, cleaning up etc are some thing I am able to control - but I can't control what's playing in my speakers back home ( I can't hear it anyway! ).

The problems with MP not polling for updates in the databases have I solved in a quite simle manner: I simply check whether or not it's ok to restart the MP - and if, then let my scripts do this, to get MP updated.
- I can't see if any is using the MP at the moment, but at least I can see if there is freetime between the recordings

If I really need to control the MP remotely, I would go for a vnc solution.
spo is offline   Reply With Quote
Reply

Bookmarks

Tags
interface, web

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mediaportal crash after tv setup in settings/setup wizard zimmerkid Codecs, External Players 1 2007-01-18 05:17
cannot get tv picture at all! dreamer06 General Support 3 2006-04-14 02:31
interface for NON-GUI plugins frodo Plugins 3 2005-02-20 18:49
Interface for external schedulers ŕ la myHTPC TV PlugIn ? Anonymous Improvement Suggestions 0 2005-01-05 19:47
Plugin interface Anonymous Plugins 13 2004-09-15 17:25


All times are GMT +1. The time now is 06:01.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress