Self Contained Web Server / Interface (1 Viewer)

Big_Kev

Portal Pro
June 8, 2007
338
186
Home Country
New Version 0.5.0.0

It is with great fear and trepidation that I let this "release" escape....

That's confidence for you!

It includes all of the Playlist management stuff.

You will find added to the end of the Install, a new install for a program called BKHelper.

This is a process DLL for MediaPortal, and needs to be installed in the mediaportal > plugins > process directory in order for it to work...

It is a TCP server app that listens on port 50120 (this can be changed in MediaPortal configuration).

If MediaPortal is not running on the PC where it is installed, it will not work - as it is a MediaPortal CLIENT plugin.

You can have the MediaPortal client on a different machine to the Web Interface, but you must use the separate BKHelper installer from the link on the download page.

I will address the other issues in the next few days!
 

stanik

Portal Pro
October 10, 2006
146
4
Home Country
Czech Republic Czech Republic
Hi, after installing bkhelper (included in ver. 0.5.0.0) I cant go to Plugins configuration in Mediaportal Config. Its always crash.
 

Big_Kev

Portal Pro
June 8, 2007
338
186
Home Country
New Version 0.5.0.1 / 0.0.0.2

New version of BKHelper:

1. Installer was not installing the additional assemblies in the correct place, they went into system directory.
2. Fix for creating BKHelperSetup.xml automatically (this is in the MediaPortal directory).

BKHelper uses an xml style input, so you can make your own program to interface to it... you can even use telnet or hypertext, you just need a TCP client.

Command format is

<command><Action>[command number]</Action><Data>[command data]</Data></command>

sent as a text string to the TCP connection

Command Number:
1 - List all playlists (command data null) eg <command><Action>1</Action><Data></Data></command>
2 - Load and play playlist (command data = playlist name including extension) eg <command><Action>2</Action><Data>Arias.m3p</Data></command>
3- Execute a MP command (command data = command to execute) eg <command><Action>3</Action><Data>play</Data></command>
Commands Are:
play, stop, pause, volumeup, volumedown, mute, next, prev, rec, rew,fwd, back, up, down, left, right, ok, info, ehome, channelup, channeldown, epg, rectv, livetv, dvdmenu, num1, num2. num3, num4, num5, num6, num7, num8, num9, num0, enter, clear, tv, music, pictures, video, radio, messenger, power
4 - Get Audio by share (command data = null for root music dir, or full share path)
5 - Get Audio by album (command data = null for all, album name for song listing)
6- Get Audio by Artist (command data = null for all, artist name for song listing)
7 - Add to playlist (command data = share name, playlist name, song file name)
8 - Add Album to playlist (command data = album name)
9 - Add Artist to playlist (command data = artist name)
10 - List current playlist (command data = null)
11 - Shuffle current playlist (command data = null)
12 - move song up (command data = index of song to move - first song = index 0)
13 - move song down (command data = index of song to move)
14 - remove from playlist (command data = song file name)
98 - clear current playlist (command data = null)
99 - play current playlist (command data = null) - this will invoke the player if MP is not already playing (ie resuming after pause - sending the "play" command (action 3, command data play) will not start a new playlist)
999 - current status (command data = null)

If you play around in hypertext you can see the format of the returned data.

New version of Web Interface

I think I have tracked down some more problems....

Duplicate names on guide.
Suggestions including channel names.

Kev
 

regeszter

Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Hi Kev,

    after installed the latest version the web interface says:
    MP Web Server Error 500

    --------------------------------------------------------------------------------
    The Web Server has encountered the following error:
    [AnyDAC][Phys][ODBC][Microsoft][SQL Native Client][SQL Server]ORDER BY items must appear in the select list if SELECT DISTINCT is specified.
     

    Big_Kev

    Portal Pro
    June 8, 2007
    338
    186
    Home Country
    Problem with 0.5.0.2

    Sorry All!

    Latest installer is incorrect!

    As a work around until I can repost, run the main installer, but do not install BKHelper from the main installer. Download and install BKHelper separately from the BKHelper link.

    This should work.

    I am right in the middle of adding support for switching between different clients with the playlist management / remote, so I can not re-compile a new release.

    Kev
     

    frag999

    Portal Member
    December 22, 2007
    6
    0
    Feature to use interface to begin live TV session

    I was wondering if a feature to begin/stop timeshifting on a channel could be added.

    I love the rich functionality of the interface. I can use it in my method to stream live TV to my Pocket PC. I pick a show that is currently coming from the satellite provider and then "record" it. This causes the TV server to begin recording the show and then I use VLC to transcode and send the media stream out to the internet and my Pocket PC media player then gets served by VLC.

    To change channels, I use the web interface to cancel the current recording and then stop the DVB device in the TV server setting. Then I go back to the guide and pick another program that I want to watch and repeat the process. If it would be possible to just begin timeshifting a channel and then be able to stop timeshifting it would be less clunky.
     

    Users who are viewing this thread

    Top Bottom