Kaynağa Gözat

동영상 자동비율조정 처리

LMC 4 yıl önce
ebeveyn
işleme
3bd60606ba

+ 3 - 2
src/main/webapp/WEB-INF/views/mob/display/BrandMainFormMob.html

@@ -529,10 +529,11 @@
 
 
 
 
 		var controller = new VgControllerClient({
 		var controller = new VgControllerClient({
-			target_window: document.getElementsByClassName('pdThumbVideo').contentWindow
+			target_window: document.getElementsById('pdThumbVideo').contentWindow
 		});
 		});
-		controller.on('ready', function() { //일시정지 일때 이벤트 실행.
+		controller.on('ready', function() {
 			controller.set_ratio('fill');
 			controller.set_ratio('fill');
+			controller.set_control_visibility(false);
 			controller.play();
 			controller.play();
 		});
 		});
 
 

+ 4 - 2
src/main/webapp/WEB-INF/views/web/common/layout/DefaultLayoutWeb.html

@@ -7,12 +7,14 @@
 
 
 <body>
 <body>
 
 
+<script src="https://file.kollus.com/vgcontroller/vg-controller-client.latest.min.js"></script>
+
 <div class="skipComment">
 <div class="skipComment">
 	<a href="#content">본문 바로가기</a>
 	<a href="#content">본문 바로가기</a>
 	<a href="#gnb">주메뉴 바로가기</a>
 	<a href="#gnb">주메뉴 바로가기</a>
 	<a href="#footer">하단메뉴 바로가기</a>
 	<a href="#footer">하단메뉴 바로가기</a>
 </div>
 </div>
-	
+
 <th:block th:replace="~{web/common/fragments/VariablesWeb :: variables}"></th:block>
 <th:block th:replace="~{web/common/fragments/VariablesWeb :: variables}"></th:block>
 
 
 <th:block th:replace="~{web/common/fragments/ScriptsWeb :: scripts}"></th:block>
 <th:block th:replace="~{web/common/fragments/ScriptsWeb :: scripts}"></th:block>
@@ -31,7 +33,7 @@
 <script th:inline="javascript">
 <script th:inline="javascript">
 /*<![CDATA[*/
 /*<![CDATA[*/
 	$(document).ready(function() {
 	$(document).ready(function() {
-		
+
 	});
 	});
 /*]]>*/
 /*]]>*/
 </script>
 </script>