Preview.SetAutostarts
---------------------

Sets whether to auto start preview.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Preview](component_Preview.md) | [13.3](newinversion133.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "Preview.SetAutostarts"; PreviewRef; Value ) 

**MBS**( **"Preview.SetAutostarts";** /\* Sets whether to auto start preview. \*/  
**$PreviewRef**; /\* The reference ID for this preview control.e.g. $ref \*/   
**$Value**) /\* The new setting.  
Pass 1 to auto play and 0 to not auto play.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PreviewRef | The reference ID for this preview control. | $ref |
| Value | The new setting.   Pass 1 to auto play and 0 to not auto play. | 1 |

### Result

Returns OK or error.

### Description

Sets whether to auto start preview.  
Set this property to allow previews of movie files to start playback automatically when displayed.  
### See also

- [Preview.GetAutostarts](PreviewGetAutostarts.md)

### Blog Entries

- [MBS FileMaker Plugin, version 13.3pr5](https://www.mbsplugins.de/archive/2023-06-30/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 29th June 2023 , last changed 27th August 2023

  
[Preview.SetAutoResizingMask](PreviewSetAutoResizingMask.md) - [Preview.SetFocus](PreviewSetFocus.md)

[HTML Version](PreviewSetAutostarts.shtml)