QTMovie.Autoplay
----------------

Sets a movie to start playing when a sufficient amount of media data is available.

| 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.Autoplay"; Movie ) 

**MBS**( **"QTMovie.Autoplay";** /\* Sets a movie to start playing when a sufficient amount of media data is available. \*/  
**$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

Sets a movie to start playing when a sufficient amount of media data is available.  
The autoplay method configures a QTMovie object to begin playing as soon as enough data is available that the playback can continue uninterrupted to the end of the movie. This is most useful for movies being loaded from a remote URL or from an extremely slow local device. For movies stored on most local devices, this method has the same effect as the [QTMovie.Play](QTMoviePlay.md) method.  
### Examples

Play now

 MBS ( "QTMovie.Autoplay"; $Movie )  
Play when enough data is loaded:

 MBS ( "QTMovie.Autoplay"; $Movie )  
### See also

- [QTMovie.OpenContainer](QTMovieOpenContainer.md)
- [QTMovie.OpenFile](QTMovieOpenFile.md)
- [QTMovie.OpenURL](QTMovieOpenURL.md)
- [QTMovie.Play](QTMoviePlay.md)

Created 18th August 2014 , last changed 18th August 2014

  
[QTExport.Validate](QTExportValidate.md) - [QTMovie.CurrentFrameImage](QTMovieCurrentFrameImage.md)

[HTML Version](QTMovieAutoplay.shtml)