#include <videowidget.hpp>
Widget that plays a video.
MWGui::VideoWidget::VideoWidget |
( |
| ) |
|
void MWGui::VideoWidget::autoResize |
( |
bool |
stretch | ) |
|
Adjust the coordinates of this video widget relative to its parent, based on the dimensions of the playing video.
- Parameters
-
stretch | Stretch the video to fill the whole screen? If false, black bars may be added to fix the aspect ratio. |
int MWGui::VideoWidget::getVideoHeight |
( |
| ) |
|
int MWGui::VideoWidget::getVideoWidth |
( |
| ) |
|
bool MWGui::VideoWidget::hasAudioStream |
( |
| ) |
|
Return true if a video is currently playing and it has an audio stream.
void MWGui::VideoWidget::playVideo |
( |
const std::string & |
video | ) |
|
Set the VFS (virtual file system) to find the videos on.
void MWGui::VideoWidget::stop |
( |
| ) |
|
Stop video and free resources (done automatically on destruction)
bool MWGui::VideoWidget::update |
( |
| ) |
|
- Returns
- Is the video still playing?
std::auto_ptr<Video::VideoPlayer> MWGui::VideoWidget::mPlayer |
|
private |
std::auto_ptr<MyGUI::ITexture> MWGui::VideoWidget::mTexture |
|
private |
The documentation for this class was generated from the following files: