2014-06-05, 16:08
Tested on Gotham RC1 on windows7 x64:
Using Python API
To reproduce:
Configure an external player in playercorefactory.xml. For example:
Then start a video using the context menu -> 'Play using...'
If the native DVDPlayer is chosen, onPlayBackStarted event fires and event written to log.
If an external Player is chosen (i.e. MPC-HC) onPlayBackStarted event is not fired.
However, for both, either the onPlayBackEnded or the onPlayBackStopped event fires.
Will post to trac.xbmc.org if confirmed or if no one comments, will post tomorrow.
Using Python API
Code:
import xbmc
class CapturePlayer(xbmc.Player):
def __init__(self, *args):
xbmc.Player.__init__(self)
def onPlayBackStarted(self):
xbmc.log("##### TEST - playback started", level=xbmc.LOGNOTICE)
def onPlayBackEnded(self):
xbmc.log("##### TEST - playback ended", level=xbmc.LOGNOTICE)
def onPlayBackStopped(self):
xbmc.log("##### TEST - playback stopped", level=xbmc.LOGNOTICE)
def main():
player = CapturePlayer()
while not xbmc.abortRequested:
xbmc.sleep(500)
del player
main()
To reproduce:
Configure an external player in playercorefactory.xml. For example:
Code:
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-HC\mpc-hc.exe</filename>
<args>"{1}" /fullscreen /play /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>topright</warpcursor>
</player>
If the native DVDPlayer is chosen, onPlayBackStarted event fires and event written to log.
If an external Player is chosen (i.e. MPC-HC) onPlayBackStarted event is not fired.
However, for both, either the onPlayBackEnded or the onPlayBackStopped event fires.
Will post to trac.xbmc.org if confirmed or if no one comments, will post tomorrow.