UNPKG

333 BJavaScriptView Raw
1import play from '../internal/play.js';
2import seek from '../internal/seek.js';
3
4/* eslint-disable no-invalid-this */
5export default function() {
6 if (this._.visible) {
7 return this;
8 }
9 this._.visible = true;
10 if (this.media && this.media.paused) {
11 return this;
12 }
13 seek.call(this);
14 play.call(this);
15 return this;
16}