|
@@ -1763,6 +1763,33 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ <!-- 210422_추가 : 상품썸네일 영상 -->
|
|
|
|
|
+ var controller;
|
|
|
|
|
+ var player = document.getElementById('player');
|
|
|
|
|
+ window.onload = function() {
|
|
|
|
|
+ try {
|
|
|
|
|
+ var controller = new VgControllerClient({
|
|
|
|
|
+ // target_window: document.getElementById('prodctThumbVideo').contentWindow
|
|
|
|
|
+ target_window: document.getElementsByClassName('pd_mov').contentWindow
|
|
|
|
|
+ });
|
|
|
|
|
+ controller.on('ready', function(){
|
|
|
|
|
+ //플레이어 준비 완료
|
|
|
|
|
+ // controller.set_ratio('cover');
|
|
|
|
|
+ // contain : 비율에 맞게 채웁니다.
|
|
|
|
|
+ //fill : 화면에 꽉 차게 채웁니다.
|
|
|
|
|
+ //enlargement : 세로 높이를 꽉 차게 맞춥니다. 좌우로 스크롤이 가능합니다
|
|
|
|
|
+ controller.play();
|
|
|
|
|
+ });
|
|
|
|
|
+ controller.on('done', function(){
|
|
|
|
|
+ //플레이어 재생 완료
|
|
|
|
|
+ controller.play();
|
|
|
|
|
+ });
|
|
|
|
|
+ } catch(e) {
|
|
|
|
|
+ // Videogateweay Controller Library는 window.postMessage API를 이용하기 때문에
|
|
|
|
|
+ // 해당 기능을 지원하지 않는 웹브라우져에서는 동작하지 않습니다.
|
|
|
|
|
+ // 이 부분에 적절한 fail-over 코드를 추가하여 주십시요.
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
/*]]>*/
|
|
/*]]>*/
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|