function play() {
            var _this2 = this;

            if (!utils.is.function(this.media.play)) {
                return null;
            }

            // If ads are enabled, wait for them first
            if (this.ads.enabled && !this.ads.initialized) {
                return this.ads.managerPromise.then(function () {
                    return _this2.ads.play();
                }).catch(function () {
                    return _this2.media.play();
                });
            }

            // Return the promise (for HTML5)
            return this.media.play();
        }
/**
         * Play the media, or play the advertisement (if they are not blocked)
         */
Play the media, or play the advertisement (if they are not blocked)
Play the media or play the advertisement ( if they are not blocked )
function play() {
            var _this2 = this;
            if (!utils.is.function(this.media.play)) {
                return null;
            }
            if (this.ads.enabled && !this.ads.initialized) {
                return this.ads.managerPromise.then(function () {
                    return _this2.ads.play();
                }).catch(function () {
                    return _this2.media.play();
                });
            }
            return this.media.play();
        }
function play ( ) { var _this2 = this ; if ( ! utils . is . function ( this . media . play ) ) { return null ; } if ( this . ads . enabled && ! this . ads . initialized ) { return this . ads . managerPromise . then ( function ( ) { return _this2 . ads . play ( ) ; } ) . catch ( function ( ) { return _this2 . media . play ( ) ; } ) ; } return this . media . play ( ) ; }
Play the media, or play the advertisement (if they are not blocked)
Play the media or play the advertisement ( if they are not blocked )
// If ads are enabled, wait for them first // Return the promise (for HTML5)