#include <VideoPlayer.h>
Inherits VideoPlayerInterface.
Inherited by BinkVideoPlayer.
Public Member Functions | |
| virtual void | init (void) |
| Initialize video playback code. | |
| virtual void | reset (void) |
| Reset video playback. | |
| virtual void | update (void) |
| Services all audio tasks. Should be called frequently. | |
| virtual void | deinit (void) |
| Close down player. | |
| VideoPlayer () | |
| ~VideoPlayer () | |
| virtual void | loseFocus (void) |
| Should be called when application loses focus. | |
| virtual void | regainFocus (void) |
| Should be called when application regains focus. | |
| virtual VideoStreamInterface * | open (AsciiString movieTitle) |
| Open video file for playback. | |
| virtual VideoStreamInterface * | load (AsciiString movieTitle) |
| Load video file in to memory for playback. | |
| virtual VideoStreamInterface * | firstStream (void) |
| Return the first open/loaded video stream. | |
| virtual void | closeAllStreams (void) |
| Close all open streams. | |
| virtual void | addVideo (Video *videoToAdd) |
| Add a video to the list of videos we can play. | |
| virtual void | removeVideo (Video *videoToRemove) |
| Remove a video to the list of videos we can play. | |
| virtual Int | getNumVideos (void) |
| Retrieve info about the number of videos currently listed. | |
| virtual const Video * | getVideo (AsciiString movieTitle) |
| Retrieve info about a movie based on internal name. | |
| virtual const Video * | getVideo (Int index) |
| Retrieve info about a movie based on index. | |
| virtual const FieldParse * | getFieldParse (void) const |
| Return the field parse info. | |
| virtual void | notifyVideoPlayerOfNewProvider (Bool nowHasValid) |
| Notify the video player that they can now ask for an audio handle, or they need to give theirs up. | |
| void | remove (VideoStream *stream) |
| remove stream from active list | |
Public Member Functions inherited from VideoPlayerInterface | |
| virtual | ~VideoPlayerInterface () |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Attributes | |
| VecVideo | mVideosAvailableForPlay |
| VideoStream * | m_firstStream |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Static Protected Attributes | |
| static const FieldParse | m_videoFieldParseTable [] |
Common video playback code.
Definition at line 268 of file VideoPlayer.h.
| VideoPlayer::VideoPlayer | ( | ) |
Definition at line 157 of file VideoPlayer.cpp.
| VideoPlayer::~VideoPlayer | ( | ) |
Definition at line 167 of file VideoPlayer.cpp.
|
virtual |
Add a video to the list of videos we can play.
Implements VideoPlayerInterface.
Definition at line 313 of file VideoPlayer.cpp.
|
virtual |
Close all open streams.
Implements VideoPlayerInterface.
Definition at line 272 of file VideoPlayer.cpp.
|
virtual |
Close down player.
Implements VideoPlayerInterface.
Reimplemented in BinkVideoPlayer.
Definition at line 193 of file VideoPlayer.cpp.
|
virtual |
Return the first open/loaded video stream.
Implements VideoPlayerInterface.
Definition at line 263 of file VideoPlayer.cpp.
|
inlinevirtual |
Return the field parse info.
Implements VideoPlayerInterface.
Definition at line 302 of file VideoPlayer.h.
|
virtual |
Retrieve info about the number of videos currently listed.
Implements VideoPlayerInterface.
Definition at line 342 of file VideoPlayer.cpp.
|
virtual |
Retrieve info about a movie based on internal name.
Implements VideoPlayerInterface.
Definition at line 350 of file VideoPlayer.cpp.
Retrieve info about a movie based on index.
Implements VideoPlayerInterface.
Definition at line 363 of file VideoPlayer.cpp.
|
virtual |
Initialize video playback code.
Implements VideoPlayerInterface.
Reimplemented in BinkVideoPlayer.
Definition at line 180 of file VideoPlayer.cpp.
|
virtual |
Load video file in to memory for playback.
Implements VideoPlayerInterface.
Reimplemented in BinkVideoPlayer.
Definition at line 254 of file VideoPlayer.cpp.
|
virtual |
Should be called when application loses focus.
Implements VideoPlayerInterface.
Reimplemented in BinkVideoPlayer.
Definition at line 227 of file VideoPlayer.cpp.
|
inlinevirtual |
Notify the video player that they can now ask for an audio handle, or they need to give theirs up.
Implements VideoPlayerInterface.
Reimplemented in BinkVideoPlayer.
Definition at line 304 of file VideoPlayer.h.
|
virtual |
Open video file for playback.
Implements VideoPlayerInterface.
Reimplemented in BinkVideoPlayer.
Definition at line 245 of file VideoPlayer.cpp.
|
virtual |
Should be called when application regains focus.
Implements VideoPlayerInterface.
Reimplemented in BinkVideoPlayer.
Definition at line 236 of file VideoPlayer.cpp.
| void VideoPlayer::remove | ( | VideoStream * | stream | ) |
remove stream from active list
Definition at line 286 of file VideoPlayer.cpp.
|
virtual |
Remove a video to the list of videos we can play.
Implements VideoPlayerInterface.
Definition at line 329 of file VideoPlayer.cpp.
|
virtual |
Reset video playback.
Implements VideoPlayerInterface.
Reimplemented in BinkVideoPlayer.
Definition at line 201 of file VideoPlayer.cpp.
|
virtual |
Services all audio tasks. Should be called frequently.
Implements VideoPlayerInterface.
Reimplemented in BinkVideoPlayer.
Definition at line 210 of file VideoPlayer.cpp.
|
protected |
Definition at line 272 of file VideoPlayer.h.
|
staticprotected |
Definition at line 506 of file VideoPlayer.h.
|
protected |
Definition at line 271 of file VideoPlayer.h.