Linux Issue with onPlayBackStarted in a XBMC service with Frodo alpha 3
#1
Hello,
I make an addon build like a xbmc service to control the lights in my room with xbmc player events.

It works perfectly with Eden version.

I installed the nigthly build to test my addon with Frodo early version.

Everything works well except the detection of the onPlayBackStarted event.

It is like the method is not called by xbmc when he starts to play the video.

Is there somebody that have the same problem or it is my addon that has a conception issue ?

A sample of the code :
Quote:...
# ADDON PLAYER
xbmc.log('KNX-Commander: NEW CLASS PLAYER')
class MyPlayer(xbmc.Player) :
xbmc.log('KNX-Commander: Class player is opened')

def __init__ (self):
xbmc.Player.__init__(self)
xbmc.log('KNX-Commander: Class player is initialized')

def onPlayBackStarted(self):
if xbmc.Player().isPlayingVideo():
xbmc.log('KNX-Commander: PLAYBACK STARTED')
#Execute Player START Event settings on Device
if my_pevstart=="true":
linknx_send(my_ip,my_port,my_pevstartcmd,my_pevstartval)

...

thanks for your help.

XBMC AddOn to control your lights with XBMC
Reply
#2
Which version? There was some messing around there the other day.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
You sure

PHP Code:
if xbmc.Player().isPlayingVideo(): 

Isn't returning false for some reason?
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
hello,

for jmarshall : thanks for the information, I will try with an other version.
The version is 2:11.0~git201206011656~5355c64-1~ppa1~lucid installed on ubuntu 10.04.
I have no other info about it. The PPA is nathan-renniewaldock-xbmc-nightly-lucid.

For Nuka1195 : I put a log action before the test and nothing was write on log ?

Regards
XBMC AddOn to control your lights with XBMC
Reply
#5
You should be OK with that build, but it was that day that the diddling with OnPlaybackStarted happened. I'd definitely try a new one just to be sure.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
Hello,
to close the post, I made a test with a early version on windows and my Addon is still working.
It works on the new version on Linux/Ubuntu to.

Thanks for your help.

Regards
XBMC AddOn to control your lights with XBMC
Reply

Logout Mark Read Team Forum Stats Members Help
Issue with onPlayBackStarted in a XBMC service with Frodo alpha 31