margro / TVServerXBMC

Kodi/XBMC pvr backend plugin for MediaPortal's TVServer
http://www.scintilla.utwente.nl/~marcelg/xbmc/tvserverxbmc.html
20 stars 18 forks source link

Add optional parameter to "GetUserName" command and extend return message format of "IsTimeshifting" command #11

Closed Romank1 closed 9 years ago

Romank1 commented 9 years ago

Hi,

I have added optional parameter to "GetUserName" command.

SendCommand("GetUserName\n") will return - current user name(as before). SendCommand("GetUserName:TimeshiftingUsers\n") will return - all timeshifting user names.

Also I have extended the return message format of "IsTimeshifting" command , timeshift file path added to the message.

Current return message format: "True|rtsp://HostName:554/stream5.2|ChannelInfo"

New return message format: "True|rtsp://HostName:554/stream5.2|\\\\HOSTNAME-PC\\Timeshift\\live5-2.ts.tsbuffer|ChannelInfo"

This modification will allow me to find the "pvr.mediaportal.tvserver addon" user name, get UNC timeshift file and pass it to DirectShow source filter of Kodi DSPlayer.

I have verified that this changes will not affect the existing functionality of pvr.mediaportal.tvserver addon.

Roman

margro commented 9 years ago

Merged in the 1.12 branch. Thanks!

Romank1 commented 9 years ago

changelog: Extended: "IsTimeshifting" command now also returns the UNC timeshift file (credits Romank1)

Minor description correction: Extended return message from "IsTimeshifting" command contains timeshift file path that's configured in MediaPortal TV-Server settings(local path or UNC path). I use "GetCardSettings" command in order to convert local timeshift path to UNC path.

Thanks.