Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created June 20, 2017 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/a0f0b6bb2f8820af622a144f3ddb41e9 to your computer and use it in GitHub Desktop.
Save matthieu-D/a0f0b6bb2f8820af622a144f3ddb41e9 to your computer and use it in GitHub Desktop.
export class HomePage {
.
.
.
ngAfterViewInit() {
this.audio.nativeElement.oncanplaythrough = () => {
alert("Can play through video without stopping");
this.audio.nativeElement.play();
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment