BitmapToolkit Scol plugin
Functions | Variables
MediaPlayerToolkit.cpp File Reference
#include <scolPlugin.h>
#include <limits>
#include "MediaPlayer.h"
#include "ScolConvert.h"

Go to the source code of this file.

Functions

MediaPlayergetPlayerFromStack (mmachine m, int pos)
 
int destroyMediaPlayerObj (mmachine m, SCOL_PTR_TYPE handsys, int objm)
 
int _CRmediaPlayer (mmachine m)
 _CRMediaPlayer : Create an empty media player (no video loaded).
 
int _DSmediaPlayer (mmachine m)
 _DSMediaPlayer : Delete a media player object.
 
int _OPENmediaPlayerUrl (mmachine m)
 _OPENmediaPlayerUrl : open a media player url.
 
int _OPENmediaPlayerFile (mmachine m)
 _OPENmediaPlayerFile : open a media player file.
 
int _BLTmediaPlayer (mmachine m)
 _BLTmediaPlayer : This function blits the current video frame into a bitmap Prototype: fun [ObjMediaPlayer ObjBitmap] ObjBitmap
 
int _BLTmediaPlayerBuffer (mmachine m)
 _BLTmediaPlayerBuffer : This function blits the current video frame into a buffer Prototype: fun [ObjMediaPlayer ObjBuff I I I] ObjBuff
 
int _GETmediaPlayerBuffer (mmachine m)
 _GETmediaPlayerBuffer : This function blits the current video frame into a buffer Prototype: fun [ObjMediaPlayer] [ObjBuff I I I]
 
int _PLAYmediaPlayer (mmachine m)
 _PLAYmediaPlayer : Play / resume (if paused) the video. Prototype: fun [ObjMediaPlayer] ObjMediaPlayer
 
int _PAUSEmediaPlayer (mmachine m)
 _PAUSEmediaPlayer : Pause the video. Prototype: fun [ObjMediaPlayer] ObjMediaPlayer
 
int _STOPmediaPlayer (mmachine m)
 _STOPmediaPlayer : Stop the video. Prototype: fun [ObjMediaPlayer] ObjMediaPlayer
 
int _SETmediaPlayerSize (mmachine m)
 _SETmediaPlayerSize : Change the video size. Prototype: fun [ObjMediaPlayer I I] ObjMediaPlayer
 
int _GETmediaPlayerSize (mmachine m)
 _GETmediaPlayerSize : Get the current video size. Prototype: fun [ObjMediaPlayer] [I I]
 
int _GETmediaPlayerSourceSize (mmachine m)
 _GETmediaPlayerSourceSize : Get the size of the source video, before resize. Prototype: fun [ObjMediaPlayer] [I I]
 
int _GETmediaPlayerTime (mmachine m)
 _GETmediaPlayerTime : Get the playback position in the current video. Prototype: fun [ObjMediaPlayer] I
 
int _GETmediaPlayerLength (mmachine m)
 _GETmediaPlayerLength : Get the media player length. Prototype: fun [ObjMediaPlayer] I
 
int _SEEKmediaPlayer (mmachine m)
 _SEEKmediaPlayer : Seek to the given position in milliseconds. Prototype: fun [ObjMediaPlayer I] ObjMediaPlayer
 
int _SETmediaPlayerLoop (mmachine m)
 _SETmediaPlayerLoop : Toggle loop playback mode. Prototype: fun [ObjMediaPlayer I] ObjMediaPlayer
 
int _SETmediaPlayerStream (mmachine m)
 _SETmediaPlayerStream : Select a video stream to play in the current file. Prototype: fun [ObjMediaPlayer I] ObjMediaPlayer
 
int _SETmediaPlayerAudioStream (mmachine m)
 _SETmediaPlayerAudioStream : Select an audio stream to play in the current file. Prototype: fun [ObjMediaPlayer I] ObjMediaPlayer
 
int _GETmediaPlayerAudio (mmachine m)
 _GETmediaPlayerAudio : Get raw audio data from the currently playing video. Prototype: fun [ObjMediaPlayer] S
 
int _SETmediaPlayerAudioFormat (mmachine m)
 _SETmediaPlayerAudioFormat : Set the output format for audio. Prototype: fun [ObjMediaPlayer I I] ObjMediaPlayer
 
int _GETmediaPlayerHasAudio (mmachine m)
 _GETmediaPlayerHasAudio : Check whether an audio stream is selected and ready to play. Prototype: fun [ObjMediaPlayer] I
 
int _GETmediaPlayerHasVideo (mmachine m)
 _GETmediaPlayerHasVideo : Check whether a video stream is selected and ready to play. Prototype: fun [ObjMediaPlayer] I
 
int _GETmediaPlayerState (mmachine m)
 _GETmediaPlayerState : Get the current playback state of a MediaPlayer. Prototype: fun [ObjMediaPlayer] I
 
int _GETmediaPlayerIsLiveStream (mmachine m)
 _GETmediaPlayerIsLiveStream : Check whether the current media source is a live stream or not. Prototype: fun [ObjMediaPlayer] I
 
int _GETmediaPlayerIsSeekable (mmachine m)
 _GETmediaPlayerIsSeekable : Check whether the current media source supports seeking. Prototype: fun [ObjMediaPlayer] I
 
int _GETmediaPlayerAudioStreams (mmachine m)
 _GETmediaPlayerAudioStreams : Get a list of the current file's audio streams. Prototype: fun [ObjMediaPlayer] [S r1]
 
int _GETmediaPlayerVideoStreams (mmachine m)
 _GETmediaPlayerVideoStreams : Get a list of the current file's video streams. Prototype: fun [ObjMediaPlayer] [S r1]
 
int _CBmediaPlayerEnd (mmachine m)
 _CBmediaPlayerEnd : This function set the Callback for end event of a media player content Prototype: fun [ObjMediaPlayer fun [ObjMediaPlayer u0] u1 u0] ObjMediaPlayer
 
int getMediaPlayerEndCb (mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE ret)
 
int _CBmediaPlayerLoaded (mmachine m)
 _CBmediaPlayerLoaded : This function set the Callback for loaded event of a media player Prototype: fun [ObjMediaPlayer fun [ObjMediaPlayer u0 I] u1 u0] ObjMediaPlayer
 
int getMediaPlayerLoadedCb (mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE ret)
 

Variables

int OBJMEDIAPLAYERSCOL
 
int NBMEDIAPLAYER_CALLBACK = 2
 
int MEDIAPLAYER_END_CB
 
int MEDIAPLAYER_LOADED_CB
 
int SCOL_MEDIAPLAYER_END_CB = 0
 
int SCOL_MEDIAPLAYER_LOADED_CB = 1