MBS Plugin Documentation

Search:

Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchie

New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0

The list of the   themes,   classes,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

class Movieplayer
class, QuickTime, MBS QuickTime Plugin (QuickTime), class Movieplayer, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Extends the Movieplayer class inside Realbasic.
Notes: Some calls need QuickTime 2.5 and some 3.0. Ask if you need details and I can add the version requirement to each call.
MoviePlayer.clearMBS as integer
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Clears current selection.
Example:
if movieplayer1.ClearMBS=0 then
msgbox "ok"
else
msgbox "unable to clear"
end if

Notes: Returns a Mac OS error code.
MoviePlayer.ControlbarHeightMBS as integer
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Returns the height of the controlbar in pixels.
Example:
msgbox str(movieplayer1.ControlbarHeightMBS)

Notes: Normally 16 pixels.
MoviePlayer.CopyMBS as movie
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: make a copy of the current selection.
Example:
m=movieplayer1.copyMBS

Notes:
There is nothing in the RB Plugin SDK to make a RB movie object on Windows.
Let me know if this changes.
Returns nil on any error.
MoviePlayer.CutMBS as movie
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: cuts off the current selection.
Example:
m=movieplayer1.cutMBS

Notes:
There is nothing in the RB Plugin SDK to make a RB movie object on Windows.
Let me know if this changes.
Returns nil on any error.
MoviePlayer.EditableMBS as boolean
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Set and get if a movie can be edited in the movieplayer control.
Example:
EditableMBS.editable=True 'make editable

Notes:
You'll see the controller button changing on QuickTime 4.0.
(Read and Write runtime property)
Movieplayer.KeysEnabledMBS as boolean
method, QuickTime, MBS QuickTime Plugin (QuickTime), class Movieplayer, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Whether keystokes are enabled or disabled.
Notes: (Read and Write runtime property)
Movieplayer.MovieChangedMBS as integer
method, QuickTime, MBS QuickTime Plugin (QuickTime), class Movieplayer, Plugin version: 5.0, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Informs the movie player control that its movie changed.
Notes:
If you change the movie internally you may call this function so the moviecontroller can update itself. (e.g. after you added new stuff to the movie)

Returns a Mac OS error code.
Movieplayer.MovieChangedMBS(themovie as movie) as integer
method, QuickTime, MBS QuickTime Plugin (QuickTime), class Movieplayer, Plugin version: 3.2, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Informs the movie player control that the movie changed.
Notes:
If you change the movie internally you may call this function so the moviecontroller can update itself. (e.g. after you added new stuff to the movie)

Returns a Mac OS error code.
MoviePlayer.PasteMBS(source as movie) as integer
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: paste a movie into the current selection.
Example:
i=movieplayer1.pasteMBS(newmovie)

Notes: Returns a Mac OS error code.
Movieplayer.PlayEveryFrameMBS as boolean
method, QuickTime, MBS QuickTime Plugin (QuickTime), class Movieplayer, Plugin version: 4.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Whether to play every frame of the movie.
Notes: (Read and Write runtime property)
Movieplayer.PlaySelectionMBS as boolean
method, QuickTime, MBS QuickTime Plugin (QuickTime), class Movieplayer, Plugin version: 4.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Whether to play only the selection of the movie.
Notes: (Read and Write runtime property)
MoviePlayer.RedrawMBS
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Redraws the current showed picture.
Example:
movieplayer1.redraw

Notes:
Implemented but not tested.
Seems to be not useful in Realbasic.
MoviePlayer.SelectAllMBS
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Select all in the movieplayer.
MoviePlayer.SelectNoneMBS
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Removes the selection of the movie player object.
Movieplayer.ShowStatusMessage(message as string) as integer
method, QuickTime, MBS QuickTime Plugin (QuickTime), class Movieplayer, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Tells the movieplayer to show a status message.
Notes: Returns a Mac OS error code. (0 for successfull, -1 for function not available)
Movieplayer.StepMBS(value as integer)
method, QuickTime, MBS QuickTime Plugin (QuickTime), class Movieplayer, Plugin version: 5.0, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Moves the current position by value frames.
Example:
movieplayer1.stepmbs 1 // one frame forward

Notes:
The movement ends on the bounds of the movie without an error.
Negative values for moving backward.
MoviePlayer.UndoMBS as integer
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Undos last action.
Example:
if movieplayer1.undoMBS=0 then
msgbox "ok"
else
msgbox "unable to undo"
end if

Notes: Returns a Mac OS error code.
MoviePlayer.volumeMBS as integer
method, QuickTime, MBS QuickTime Plugin (QuickTime), class MoviePlayer, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Set and get the volume of a movie.
Example:
movie.volumeMBS=256 'max

Notes:
The volume may be between -256 and 256.
you don't hear anything if volume <=0.
For Sound Manager 3.0 and newer it should even work to set volume bigger than 256.
To switch between sound and nosound do:
movie.volumeMBS = -movie.volumeMBS
Disabled in Realbasic 4.5 because there is allready such a method.
(Read and Write runtime property)

Some examples which use this method:

The items on this page are in the following plugins: MBS QuickTime Plugin.