BitmapToolkit Scol plugin
|
Functions | |
MediaPlayer * | getPlayerFromStack (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 |
Scol Video Player type and functions. Wraps the MediaPlayer class.
int _BLTmediaPlayer | ( | mmachine | m | ) |
_BLTmediaPlayer : This function blits the current video frame into a bitmap Prototype: fun [ObjMediaPlayer ObjBitmap] ObjBitmap
ObjMediaPlayer | : media player object from which to get frame |
ObjBitmap | : bitmap to update with the new frame |
Definition at line 231 of file MediaPlayerToolkit.cpp.
int _BLTmediaPlayerBuffer | ( | mmachine | m | ) |
_BLTmediaPlayerBuffer : This function blits the current video frame into a buffer Prototype: fun [ObjMediaPlayer ObjBuff I I I] ObjBuff
ObjMediaPlayer | : media player object from which to get frame |
ObjBuff | : buffer to update with the new frame |
I | : buffer width |
I | : buffer height |
I | : buffer bytes per pixel |
Definition at line 267 of file MediaPlayerToolkit.cpp.
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
ObjMediaPlayer | : media player object |
Definition at line 1177 of file MediaPlayerToolkit.cpp.
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
ObjMediaPlayer | : media player object |
Definition at line 1203 of file MediaPlayerToolkit.cpp.
int _CRmediaPlayer | ( | mmachine | m | ) |
_CRMediaPlayer : Create an empty media player (no video loaded).
Prototype: fun [Chn] ObjMediaPlayer
Chn | : Scol channel |
Definition at line 80 of file MediaPlayerToolkit.cpp.
int _DSmediaPlayer | ( | mmachine | m | ) |
_DSMediaPlayer : Delete a media player object.
Prototype: fun [ObjMediaPlayer] I
ObjMediaPlayer | : Player to be destroyed. |
Definition at line 116 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerAudio | ( | mmachine | m | ) |
_GETmediaPlayerAudio : Get raw audio data from the currently playing video. Prototype: fun [ObjMediaPlayer] S
ObjMediaPlayer | media player object |
Definition at line 833 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerAudioStreams | ( | mmachine | m | ) |
_GETmediaPlayerAudioStreams : Get a list of the current file's audio streams. Prototype: fun [ObjMediaPlayer] [S r1]
ObjMediaPlayer | : media player object |
Definition at line 1067 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerBuffer | ( | mmachine | m | ) |
_GETmediaPlayerBuffer : This function blits the current video frame into a buffer Prototype: fun [ObjMediaPlayer] [ObjBuff I I I]
ObjMediaPlayer | : media player object from which to get frame |
I | : buffer width |
I | : buffer height |
I | : buffer bytes per pixel |
Definition at line 321 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerHasAudio | ( | mmachine | m | ) |
_GETmediaPlayerHasAudio : Check whether an audio stream is selected and ready to play. Prototype: fun [ObjMediaPlayer] I
ObjMediaPlayer | : media player object |
Definition at line 926 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerHasVideo | ( | mmachine | m | ) |
_GETmediaPlayerHasVideo : Check whether a video stream is selected and ready to play. Prototype: fun [ObjMediaPlayer] I
ObjMediaPlayer | : media player object |
Definition at line 954 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerIsLiveStream | ( | mmachine | m | ) |
_GETmediaPlayerIsLiveStream : Check whether the current media source is a live stream or not. Prototype: fun [ObjMediaPlayer] I
ObjMediaPlayer | : media player object |
Definition at line 1010 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerIsSeekable | ( | mmachine | m | ) |
_GETmediaPlayerIsSeekable : Check whether the current media source supports seeking. Prototype: fun [ObjMediaPlayer] I
ObjMediaPlayer | : media player object |
Definition at line 1038 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerLength | ( | mmachine | m | ) |
_GETmediaPlayerLength : Get the media player length. Prototype: fun [ObjMediaPlayer] I
ObjMediaPlayer | media player object |
Definition at line 634 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerSize | ( | mmachine | m | ) |
_GETmediaPlayerSize : Get the current video size. Prototype: fun [ObjMediaPlayer] [I I]
ObjMediaPlayer | media player object |
Definition at line 494 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerSourceSize | ( | mmachine | m | ) |
_GETmediaPlayerSourceSize : Get the size of the source video, before resize. Prototype: fun [ObjMediaPlayer] [I I]
ObjMediaPlayer | media player object |
Definition at line 542 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerState | ( | mmachine | m | ) |
_GETmediaPlayerState : Get the current playback state of a MediaPlayer. Prototype: fun [ObjMediaPlayer] I
ObjMediaPlayer | : media player object |
Definition at line 982 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerTime | ( | mmachine | m | ) |
_GETmediaPlayerTime : Get the playback position in the current video. Prototype: fun [ObjMediaPlayer] I
ObjMediaPlayer | media player object |
Definition at line 590 of file MediaPlayerToolkit.cpp.
int _GETmediaPlayerVideoStreams | ( | mmachine | m | ) |
_GETmediaPlayerVideoStreams : Get a list of the current file's video streams. Prototype: fun [ObjMediaPlayer] [S r1]
ObjMediaPlayer | : media player object |
Definition at line 1122 of file MediaPlayerToolkit.cpp.
int _OPENmediaPlayerFile | ( | mmachine | m | ) |
_OPENmediaPlayerFile : open a media player file.
Prototype: fun [ObjMediaPlayer P] ObjMediaPlayer
ObjMediaPlayer | : Player to use. |
P | : File to open |
Definition at line 188 of file MediaPlayerToolkit.cpp.
int _OPENmediaPlayerUrl | ( | mmachine | m | ) |
_OPENmediaPlayerUrl : open a media player url.
Prototype: fun [ObjMediaPlayer S] ObjMediaPlayer
ObjMediaPlayer | : Player to use. |
S | : Url to open |
Definition at line 143 of file MediaPlayerToolkit.cpp.
int _PAUSEmediaPlayer | ( | mmachine | m | ) |
_PAUSEmediaPlayer : Pause the video. Prototype: fun [ObjMediaPlayer] ObjMediaPlayer
ObjMediaPlayer | : media player object to pause |
Definition at line 399 of file MediaPlayerToolkit.cpp.
int _PLAYmediaPlayer | ( | mmachine | m | ) |
_PLAYmediaPlayer : Play / resume (if paused) the video. Prototype: fun [ObjMediaPlayer] ObjMediaPlayer
ObjMediaPlayer | : media player object to play |
Definition at line 365 of file MediaPlayerToolkit.cpp.
int _SEEKmediaPlayer | ( | mmachine | m | ) |
_SEEKmediaPlayer : Seek to the given position in milliseconds. Prototype: fun [ObjMediaPlayer I] ObjMediaPlayer
ObjMediaPlayer | media player object |
I | : potision in milliseconds to seek to. |
Definition at line 672 of file MediaPlayerToolkit.cpp.
int _SETmediaPlayerAudioFormat | ( | mmachine | m | ) |
_SETmediaPlayerAudioFormat : Set the output format for audio. Prototype: fun [ObjMediaPlayer I I] ObjMediaPlayer
ObjMediaPlayer | media player object |
I | : Sample format with channel layout (one of the MP_AUDIO constants) |
I | : Sample rate in Hz. |
Definition at line 889 of file MediaPlayerToolkit.cpp.
int _SETmediaPlayerAudioStream | ( | mmachine | m | ) |
_SETmediaPlayerAudioStream : Select an audio stream to play in the current file. Prototype: fun [ObjMediaPlayer I] ObjMediaPlayer
ObjMediaPlayer | media player object |
I | : desired audio stream index (-1 for default stream) |
Definition at line 792 of file MediaPlayerToolkit.cpp.
int _SETmediaPlayerLoop | ( | mmachine | m | ) |
_SETmediaPlayerLoop : Toggle loop playback mode. Prototype: fun [ObjMediaPlayer I] ObjMediaPlayer
ObjMediaPlayer | media player object |
I | : 1 for loop mode ON, 0 for OFF. |
Definition at line 716 of file MediaPlayerToolkit.cpp.
int _SETmediaPlayerSize | ( | mmachine | m | ) |
_SETmediaPlayerSize : Change the video size. Prototype: fun [ObjMediaPlayer I I] ObjMediaPlayer
ObjMediaPlayer | media player object |
I | new width (0 for auto size) |
I | new height (0 for auto size) |
Definition at line 460 of file MediaPlayerToolkit.cpp.
int _SETmediaPlayerStream | ( | mmachine | m | ) |
_SETmediaPlayerStream : Select a video stream to play in the current file. Prototype: fun [ObjMediaPlayer I] ObjMediaPlayer
ObjMediaPlayer | media player object |
I | : desired video stream index (-1 for default stream) |
Definition at line 750 of file MediaPlayerToolkit.cpp.
int _STOPmediaPlayer | ( | mmachine | m | ) |
_STOPmediaPlayer : Stop the video. Prototype: fun [ObjMediaPlayer] ObjMediaPlayer
ObjMediaPlayer | : media player object to stop |
Definition at line 433 of file MediaPlayerToolkit.cpp.
int destroyMediaPlayerObj | ( | mmachine | m, |
SCOL_PTR_TYPE | handsys, | ||
int | objm | ||
) |
Definition at line 61 of file MediaPlayerToolkit.cpp.
int getMediaPlayerEndCb | ( | mmachine | m, |
SCOL_PTR_TYPE | id, | ||
SCOL_PTR_TYPE | ret | ||
) |
Definition at line 1182 of file MediaPlayerToolkit.cpp.
int getMediaPlayerLoadedCb | ( | mmachine | m, |
SCOL_PTR_TYPE | id, | ||
SCOL_PTR_TYPE | ret | ||
) |
Definition at line 1208 of file MediaPlayerToolkit.cpp.
MediaPlayer * getPlayerFromStack | ( | mmachine | m, |
int | pos | ||
) |
Definition at line 51 of file MediaPlayerToolkit.cpp.
int MEDIAPLAYER_END_CB |
Definition at line 45 of file MediaPlayerToolkit.cpp.
int MEDIAPLAYER_LOADED_CB |
Definition at line 46 of file MediaPlayerToolkit.cpp.
int NBMEDIAPLAYER_CALLBACK = 2 |
Definition at line 44 of file MediaPlayerToolkit.cpp.
int OBJMEDIAPLAYERSCOL |
Definition at line 43 of file MediaPlayerToolkit.cpp.
int SCOL_MEDIAPLAYER_END_CB = 0 |
Definition at line 47 of file MediaPlayerToolkit.cpp.
int SCOL_MEDIAPLAYER_LOADED_CB = 1 |
Definition at line 48 of file MediaPlayerToolkit.cpp.