BitmapToolkit Scol plugin
|
MediaPlayer.h
Go to the documentation of this file.
53{
77 };
244 // Presentation timestamp (PTS) of the current video frame, in the current video stream's time base.
250 // Guards to prevent audio/video from possibly messing up and waiting too long when seeking backwards
int GetAudioThreaded(char *destBuffer, size_t length)
Get decoded audio data from the media (using the dedicated audio thread).
Definition MediaPlayer.cpp:1481
int SetVideoStream(int streamIndex=-1)
Select the video stream to play from the current file.
Definition MediaPlayer.cpp:662
bool HasAudio()
Check whether the player has an audio track selected and ready to play.
Definition MediaPlayer.cpp:360
void Play(long startPosition=0)
Play/resume the currently loaded media.
Definition MediaPlayer.cpp:487
void SetAudioFormat(AudioFormats format, int sampleRate)
Set the output format for audio.
Definition MediaPlayer.cpp:432
static const AVPixelFormat DEST_PIXEL_FORMAT
Definition MediaPlayer.h:58
std::vector< std::string > ListStreams(AVMediaType type)
Definition MediaPlayer.cpp:788
bool HasVideo()
Check whether the player has a video track selected and ready to play.
Definition MediaPlayer.cpp:365
void GetSize(int &width, int &height)
Get the current size of the video (after resize)
Definition MediaPlayer.cpp:398
void GetSourceSize(int &width, int &height)
Get the original size of the video (before resize)
Definition MediaPlayer.cpp:409
int SetAudioStream(int streamIndex=-1)
Select the audio stream to play from the current file.
Definition MediaPlayer.cpp:703
void SetCurrentTime(long time)
Set the current playback time of the media.
Definition MediaPlayer.cpp:561
static void DeInitFFmpeg()
Free resources allocated by init. Call this when you're done with MediaPlayer.
Definition MediaPlayer.cpp:76
static void InitFFmpeg()
Init FFmpeg functionalities. Call this before any other MediaPlayer functions.
Definition MediaPlayer.cpp:69
void Open(std::string path)
Open the media file at the given path. If a media was already loaded, it will be replaced by the new ...
Definition MediaPlayer.cpp:239
static bool IsValidPlayer(MediaPlayer *player)
Check whether a media player is still valid.
Definition MediaPlayer.cpp:99
Generated by 1.9.8