Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  

QTMovie.OpenContainer

Opens the movie from container.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
QTMovie 4.0 Yes No Yes, macOS only No No

MBS( "QTMovie.OpenContainer"; Container )

Parameters

Parameter Description Example value
Container The container with the movie file. MyTable::MovieContainer

Result

Returns Movie Reference or error.

Description

Opens the movie from container.
This loads the movie in RAM.
Returns the movie reference which must be released with QTMovie.Release function.
See also QTMovie.OpenFile or QTMovie.OpenURL.
Works with normal container, compressed container and referenced container file.
For interactive containers it may be better to use MovieView.Movie as FileMaker already loaded the video and we can reference it instead of loading it again.

Examples

Open Movie

$Movie = MBS( "QTMovie.OpenContainer"; MyTable::MovieContainer )

Close it later

MBS( "QTMovie.Release"; $Movie )

Load and play:

# Open Container
Set Variable [$$Movie; Value:MBS("QTMovie.OpenContainer"; QTMovie::MovieContainer)]
# Play it
Set Variable [$r; Value:MBS("QTMovie.Play"; $$Movie)]
# later you should release movie to free memory

See also

Example Databases


QTMovie.GotoPreviousSelectionPoint   -   QTMovie.OpenFile

Feedback: Report problem or ask question.




Links
MBS Xojo blog