diff --git a/private/lib/media/mediaRenderers/MediaLocalVideo.php b/private/lib/media/mediaRenderers/MediaLocalVideo.php index 5d07fb7..2b6326e 100644 --- a/private/lib/media/mediaRenderers/MediaLocalVideo.php +++ b/private/lib/media/mediaRenderers/MediaLocalVideo.php @@ -13,9 +13,10 @@ class MediaLocalVideo extends MediaRenderer{ $size = self::$SIZES[$opt["size"]]; } - return ''; + return '
'; + } public function render(array $opt = array()){ diff --git a/public/articolo.php b/public/articolo.php index 9822ebe..b406550 100644 --- a/public/articolo.php +++ b/public/articolo.php @@ -409,7 +409,18 @@ if(sizeof($medias)>0){ ?> $(document).ready(function(event){ +// $("video").on('loadstart',function (event){ +// var wid = $(this).innerWidth(); +// $(".videoContainerForImageAppend").append('
')
+// $(this).hide();
+// });
+// $("video").on('canplay',function (event){
+// $(".poster").hide();
+// $(this).show();
+// $(this).get(0).play();
+// });
+
$("#submit").click(function (){
// $("form#commentoForm").submit(function (){
$.ajax({
diff --git a/public/index.php b/public/index.php
index c5cacd7..f838c96 100644
--- a/public/index.php
+++ b/public/index.php
@@ -446,3 +446,15 @@ catch (Exception $ex){
GUIHandler::generateGoogleAnalyticsScripts();
?>
+
\ No newline at end of file
diff --git a/public/js/init.js b/public/js/init.js
index 9c19180..5552be9 100644
--- a/public/js/init.js
+++ b/public/js/init.js
@@ -2,4 +2,18 @@ Highcharts.setOptions({
global : {
useUTC : false
}
+});
+
+$(document).ready(function(event){
+ $("video").on('loadstart',function (event){
+ var wid = $(this).innerWidth();
+ $(".videoContainerForImageAppend").append('
')
+ $(this).hide();
+ });
+
+ $("video").on('canplay',function (event){
+ $(".poster").hide();
+ $(this).show();
+// $(this).get(0).play();
+ });
});
\ No newline at end of file
diff --git a/public/mobile/style/public.css b/public/mobile/style/public.css
index 467e8a1..f3a794b 100644
--- a/public/mobile/style/public.css
+++ b/public/mobile/style/public.css
@@ -283,4 +283,18 @@ CATEGORY SUMMARY
.middleBanner img {
height: 100%;
width: 100%;
-}
\ No newline at end of file
+}
+
+/**
+ DISABILITAZIONE TASTO DOWNLOAD DAL PLAYER VIDEO
+*/
+
+video::-internal-media-controls-download-button {
+ display:none;
+}
+
+video::-webkit-media-controls-enclosure {
+ overflow:hidden;
+}
+
+video.loading{background:black url(../images/loading.gif) center center no-repeat;}
\ No newline at end of file
diff --git a/public/style/public.css b/public/style/public.css
index 73999f5..90c8af7 100644
--- a/public/style/public.css
+++ b/public/style/public.css
@@ -621,4 +621,6 @@ video::-internal-media-controls-download-button {
video::-webkit-media-controls-enclosure {
overflow:hidden;
-}
\ No newline at end of file
+}
+
+video.loading{background:yellow url(../images/loading.gif) center center no-repeat;}
\ No newline at end of file