MovieVideo¶
from panda3d.core import MovieVideo
-
class
MovieVideo
¶ Bases:
TypedWritableReferenceCount
,Namable
A MovieVideo is actually any source that provides a sequence of video frames. That could include an AVI file, a digital camera, or an internet TV station.
The difference between a MovieVideo and a
MovieVideoCursor
is like the difference between a filename and a file handle. The MovieVideo just indicates a particular movie. TheMovieVideoCursor
is what allows access.Inheritance diagram
-
__init__
(param0: MovieVideo)¶
-
__init__
(name: str) This constructor returns a null video stream — a stream of plain blue and white frames that last one second each. To get more interesting video, you need to construct a subclass of this class.
-
property
filename
→ Filename¶ Returns the movie’s filename. A movie is not guaranteed to have a filename, if not, then this function returns an empty filename.
-
static
get
(name: Filename) → MovieVideo¶ Obtains a
MovieVideo
that references a file. Just calls MovieTypeRegistry::make_video().
-
static
getClassType
() → TypeHandle¶
-
getFilename
() → Filename¶ Returns the movie’s filename. A movie is not guaranteed to have a filename, if not, then this function returns an empty filename.
-
getSubfileInfo
() → SubfileInfo¶ If the movie is to be loaded from a subfile on disk, this returns the subfile info. Check info.is_empty() to see if this is valid data.
-
open
() → MovieVideoCursor¶ Open this video, returning a
MovieVideoCursor
of the appropriate type. Returns NULL on error.
-
property
subfile_info
→ SubfileInfo¶ If the movie is to be loaded from a subfile on disk, this returns the subfile info. Check info.is_empty() to see if this is valid data.
-