# Forced AutoPlay

Forcing autoPlay will make content play (sound muted) without user gesture. Content sound will stay muted until user gesture unmutes the player.

Forced autoplay should only be used if the trade-offs are fully understood. Contact the TOP team for any additional questions

## How To

Player configuration needed to force media to auto play (see examples):

    var player = TOP.createAndInitPlayer({
        config : {
            player : {
                autoPlay : true,
                autoPlayOptions : {
                    forceMedia : true
                }
            }
        }
    });

Currently the 'forceAds' is not working properly due to an issue with Freewheel

## Forced Limitations

Things to consider when forcing video to auto play:

- There are platform limitations to forcing autoplay on certain devices and browsers:
  - Android - version 53+ of Chrome
  - iOS - version 10+
- Forcing video to auto play requires that video initially play without sound (see examples)
- Programmatically unmuting will cause some devices to pause playback
- Unmuting requires a user initiated action (see examples)
- Once a user has performed a user initiated action, then controlling the player via the API will be allowed. See Muted Autoplay for more details

Attempting to auto play ads could cause a legal issue as the ad creative will play with sound muted. Check with the ads team to make sure auto play muted ads won't be a legal issue for your particular scenario.