Results 1 to 5 of 5

Thread: Playing and pausing a video with the Python API?

Threaded View

  1. #1
    Join Date
    Jun 2009
    Posts
    4

    Default Playing and pausing a video with the Python API?

    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!)
    Last edited by abossy; June 23rd, 2009 at 01:38 AM.

Similar Threads

  1. What happens next with the GUI API/Python API ?
    By Severus in forum boxee applications
    Replies: 5
    Last Post: January 4th, 2012, 04:15 AM
  2. Setting texture from python API
    By samuil in forum boxee applications
    Replies: 2
    Last Post: January 3rd, 2011, 02:54 AM
  3. playing video and audio using python Application
    By pranesh in forum boxee applications
    Replies: 2
    Last Post: December 24th, 2010, 01:50 AM
  4. Focusing element from python API
    By samuil in forum boxee applications
    Replies: 3
    Last Post: November 25th, 2010, 05:03 AM
  5. Getting Started with boxee API, for those new to XBMC + Python!
    By robcoles in forum boxee applications
    Replies: 3
    Last Post: May 5th, 2009, 06:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •