QTMovie.Play
------------

Plays the movie.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [QTMovie](component_QTMovie.md) | [4.0](newinversion40.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

### Removed

This function was [removed](removed.md) for MBS FileMaker Plugin 9.0. Please move to newer functions or keep using older plugins.

MBS( "QTMovie.Play"; Movie ) 

**MBS**( **"QTMovie.Play";** /\* Plays the movie. \*/  
**$Movie**) /\* The reference number of the movie. Please use [QTMovie.OpenContainer](QTMovieOpenContainer.md), [QTMovie.OpenFile](QTMovieOpenFile.md) or [QTMovie.OpenURL](QTMovieOpenURL.md) function to get movie reference.e.g. $mov \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Movie | The reference number of the movie. Please use [QTMovie.OpenContainer](QTMovieOpenContainer.md), [QTMovie.OpenFile](QTMovieOpenFile.md) or [QTMovie.OpenURL](QTMovieOpenURL.md) function to get movie reference. | $mov |

### Result

Returns OK or error.

### Description

Plays the movie.  
Without an actual movie view, this will only play sound.  
### Examples

Play movie:

 MBS ( "QTMovie.Play"; $Movie )  
Stop movie:

 MBS ( "[QTMovie.Stop](QTMovieStop.md)"; $Movie )  
Load and play:

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

- [QTMovie.Autoplay](QTMovieAutoplay.md)
- [QTMovie.OpenContainer](QTMovieOpenContainer.md)
- [QTMovie.OpenFile](QTMovieOpenFile.md)
- [QTMovie.OpenURL](QTMovieOpenURL.md)
- [QTMovie.Stop](QTMovieStop.md)

Created 18th August 2014 , last changed 20th January 2016

  
[QTMovie.ParseTime](QTMovieParseTime.md) - [QTMovie.PosterImage](QTMoviePosterImage.md)

[HTML Version](QTMoviePlay.shtml)