PDA

View Full Version : Playing and pausing a video with the Python API?



abossy
June 23rd, 2009, 01:36 AM
I'd like to write the following functionality:

if mc.GetPlayer().IsPaused():
mc.GetPlayer().Play()

The use case is the following: I have a video window running on a playlist and I would like to be able to control video playback with a "play" and a "pause" button. The problem is that the Play() function doesn't exist -- only Play(ListItem item). Passing the current video in the window to Play(ListItem item) restarts the video. Is there a workaround to this?

Furthermore, mc.GetPlayer().Pause() simply doesn't work. There is no effect for a video that is being played from a playlist. (I hope I'm calling these correctly!)

idan
June 23rd, 2009, 06:41 AM
please try looking at what i did in the songza application. it controls the player from the ui using built in functions to the skin.
i would also appreciate if you could open bugs on these problems on our bug tracking system http://jira.boxee.tv

thanks
idan

DPK
June 23rd, 2009, 07:48 AM
I'm beginning to think you never sleep idan what with the constant boxee development at the office and going on random bike rides, lol. :p

riegersn
June 28th, 2009, 09:48 PM
I'm beginning to think you never sleep idan what with the constant boxee development at the office and going on random bike rides, lol. :p

Your right, he never sleeps! I think he bleeds boxee :) well, don't we all?

agentlame
June 28th, 2009, 09:57 PM
wait, has jira been officially announced?