2014-05-22, 15:14
Hi,
When attempting to play LiveTV via an external player using playercorefactory.xml, the filename passed as an argument is not translated into an os-specific path.
As an example, when I tune to CNN using DVDPlayer, in the debug log, I can see that the initial designation is "pvr://channels/tv/All TV channels/55.pvr" and then there is a line stating:
"DEBUG: AddOnLog: Windows Media Center Client - wingl windx x86 Edition: OpenLiveStream> opening stream: smb://HTPC-W7/Users/Public/Recorded TV/TempSWMC/LiveTV_EinsteinsSon_Digital Cable_1106_2014_05_22_08_53_40.ts"
However, when I attempt to call an external player, it is passed "pvr://channels/tv/All TV channels/55.pvr" and hence cannot play the correct file. If I get the appropriate filename from the log and give that to MPC-HC, it plays without a problem, albeit it starts from the whatever time the stream/file was initialized.
In addition, in the Python API, obtaining the file playing from the player class, returns "pvr://channels/tv/All TV channels/55.pvr". Running this string thru xbmc.translate() returns the same string, while all other "special" file/directory names are appropriately translated.
When attempting to play LiveTV via an external player using playercorefactory.xml, the filename passed as an argument is not translated into an os-specific path.
As an example, when I tune to CNN using DVDPlayer, in the debug log, I can see that the initial designation is "pvr://channels/tv/All TV channels/55.pvr" and then there is a line stating:
"DEBUG: AddOnLog: Windows Media Center Client - wingl windx x86 Edition: OpenLiveStream> opening stream: smb://HTPC-W7/Users/Public/Recorded TV/TempSWMC/LiveTV_EinsteinsSon_Digital Cable_1106_2014_05_22_08_53_40.ts"
However, when I attempt to call an external player, it is passed "pvr://channels/tv/All TV channels/55.pvr" and hence cannot play the correct file. If I get the appropriate filename from the log and give that to MPC-HC, it plays without a problem, albeit it starts from the whatever time the stream/file was initialized.
In addition, in the Python API, obtaining the file playing from the player class, returns "pvr://channels/tv/All TV channels/55.pvr". Running this string thru xbmc.translate() returns the same string, while all other "special" file/directory names are appropriately translated.