Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_onPlayStart()
{
// Just in case the video has not received its can play even yet..
if (!this.hasLoaded)
{
this._onCanPlay();
}
if (!this._isAutoUpdating && this.autoUpdate)
{
Ticker.shared.add(this.update, this, UPDATE_PRIORITY.HIGH);
this._isAutoUpdating = true;
}
}
play()
{
if (this.playing)
{
return;
}
this.playing = true;
if (this._autoUpdate)
{
Ticker.shared.add(this.update, this, UPDATE_PRIORITY.HIGH);
}
}