BGE VideoTexture: VideoFFmpeg was missing a rewind function: rename stop() to pause() and add stop() that will also reset the frame counter.
This commit is contained in:
@@ -113,7 +113,10 @@ void Video_open (VideoBase * self, char * file, short captureID)
|
||||
PyObject * Video_play (PyImage * self)
|
||||
{ if (getVideo(self)->play()) Py_RETURN_TRUE; else Py_RETURN_FALSE; }
|
||||
|
||||
// stop video
|
||||
// pause video
|
||||
PyObject * Video_pause (PyImage * self)
|
||||
{ if (getVideo(self)->pause()) Py_RETURN_TRUE; else Py_RETURN_FALSE; }
|
||||
|
||||
PyObject * Video_stop (PyImage * self)
|
||||
{ if (getVideo(self)->stop()) Py_RETURN_TRUE; else Py_RETURN_FALSE; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user