summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-11-04 16:44:02 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-11-04 16:44:02 -0400
commitf35d63e16c34774e140a688efdcdd181b02b9c25 (patch)
tree5d7bd47d97dd7c13ac7590e323e70df03b1372fa
parent40bb5b51986ab78f80980612029cb6443fbc0706 (diff)
Option to fit or fill for #358 but no idea if it will work with videos - folks need to test it
-rw-r--r--www/templates/events-modal.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/www/templates/events-modal.html b/www/templates/events-modal.html
index 6f2a4c8f..58573026 100644
--- a/www/templates/events-modal.html
+++ b/www/templates/events-modal.html
@@ -16,12 +16,13 @@
</div>
<!-- no default video -->
<div ng-if="defaultVideo!==undefined && defaultVideo!='' && loginData.enableh264 == true">
- <div ng-if="videoIsReady" class="videogular-full-container">
+ <!--<div ng-if="videoIsReady" class="videogular-full-container">-->
+ <div ng-if="videoIsReady" ng-class="{'object-fit_cover':imageFit==false, 'object-fit_contain':imageFit==true}" >
<!--<video width="320" height="240" controls>
<source src="" dynamic-url dynamic-url-src="{{video_url}}">
</video>-->
- <videogular vg-error="onVideoError($event)" vg-can-play = "onCanPlay()" vg-player-ready="onPlayerReady($API)" vg-theme="videoObject.config.theme" vg-complete="playbackFinished()" on-double-tap="closeModal();" vg-autoplay="false" vg-responsive="true" >
+ <videogular vg-error="onVideoError($event)" vg-can-play = "onCanPlay()" vg-player-ready="onPlayerReady($API)" vg-plays-inline="videoObject.config.playsInline" vg-theme="videoObject.config.theme" vg-complete="playbackFinished()" on-double-tap="closeModal();" vg-autoplay="videoObject.config.autoPlay" vg-responsive="true" >
<<vg-media vg-src="videoObject.config.sources" vg-native-controls="false">
</vg-media>-