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!)
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!)