_setObserveIstance: function(videoPlayerView, controlOptions){
var s = this;
var $header = $('#header');
var $player = $('#player');
var threshold = ($header.outerHeight() / $player.height()).toPrecision(1);
var observerOptions = {
threshold: Number(threshold)
};
// ์ฌ์์ค์ธ ๊ฒฝ์ฐ ๋ ์ด์ด ํ๋ ์ด์ด ๋
ธ์ถ
var observerInstance = new IntersectionObserver(function(entries, observer) {
entries.forEach(function(entry){
if(entry.intersectionRatio > threshold){
// ๋ณด์ฌ์ง๋ ์์ญ ๋น์จ์ด threshold๋ณด๋ค ํฌ๋ฉด ์๋จ ํ๋ ์ด์ด ๋
ธ์ถ
}else{
// ๋ณด์ฌ์ง๋ ์์ญ ๋น์จ์ด threshold๋ณด๋ค ์์ผ๋ฉด ๋ ์ด์ดํ๋ ์ด์ด ๋
ธ์ถ
}
});
}, observerOptions);
observerInstance.observe(videoPlayerView.$el.get(0));
}
} );