ultrawidify/js/lib/VideoData.js

31 lines
506 B
JavaScript
Raw Normal View History

2018-05-09 00:03:22 +02:00
class VideoData {
constructor(video){
this.video = video;
// todo: add ArDetect instance
this.arDetector = new ArDetector(video);
2018-05-12 02:51:58 +02:00
this.resizer = new Resizer(this);
this.player = new PlayerData(this);
2018-05-12 02:51:58 +02:00
// player dimensions need to be in:
// this.player.dimensions
}
initAr() {
this.arDetector.init();
}
startAr() {
this.arDetector.start();
2018-05-09 00:03:22 +02:00
}
destroy() {
this.arDetector.stop();
}
setLastAr(lastAr){
this.resizer.setLastAr(lastAr);
}
2018-05-09 00:03:22 +02:00
}