Skip to content

Instantly share code, notes, and snippets.

@captaincole
Created February 24, 2018 05:02
Show Gist options
  • Select an option

  • Save captaincole/e346891013289e101c6d838cda605f62 to your computer and use it in GitHub Desktop.

Select an option

Save captaincole/e346891013289e101c6d838cda605f62 to your computer and use it in GitHub Desktop.
// workout-completion.page.ts
public vidState1 = 'previous';
public vidState2 = 'current';
public vidState3 = 'next';
@ViewChild('video1') video1;
@ViewChild('video2') video2;
@ViewChild('video3') video3;
// Setup Video Buffer Array, which will contain the urls that we wish to load into each video element
public videoBuffer: Array<any> = [this.emptyVideo, this.emptyVideo, this.emptyVideo];
public emptyVideo = {
url: '',
thumbnail: {
url: 'default_url'
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment