Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Nov 26, 2018
2 parents 55bc181 + c46dadb commit db6cee8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# itk-os2display/vimeo-bundle CHANGELOG

## 1.0.6

* Fixed issue with iframe ending up without 100% width.

## 1.0.5

* Fixed try/catch to catch initialization errors as well.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# itk-os2display/vimeo
Supplies a slide template for playing vimeo videos.
Supplies a slide template for playing vimeo videos. This bundle uses Vimeo's js player: https://github.com/vimeo/player.js/

## Ads and controls
To avoid ads and video controls, the shared video has to come from a user
Expand Down
10 changes: 10 additions & 0 deletions Resources/public/templates/vimeo/slides/itk-vimeo/itk-vimeo.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,13 @@
width: 100%;
height: 100%;
}

.itk-vimeo-iframe-wrapper {
width: 100%;
height: 100%;
}

.itk-vimeo-iframe-wrapper > iframe {
width: 100%;
height: 100%;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="itk-vimeo">
<div class="js-itk-vimeo--player-{{ikSlide.uniqueId}}"></div>
<div class="itk-vimeo-iframe-wrapper js-itk-vimeo--player-{{ikSlide.uniqueId}}"></div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ if (!window.slideFunctions['itk-vimeo']) {
run: function runSlide (slide, region) {
region.itkLog.info('Running itk-vimeo slide: ' + slide.title);

var slideElement = $('.slide-' + slide.uniqueId);

// Wait fadeTime before start to account for fade in.
region.$timeout(function () {
var slideElement = $('.slide-' + slide.uniqueId);

var options = {
id: slide.options.id,
width: slideElement.width(),
Expand Down Expand Up @@ -88,7 +88,7 @@ if (!window.slideFunctions['itk-vimeo']) {
});
}
catch (err) {
region.itkLog.info("Error running vimeo video, continuing");
region.itkLog.info("Error running vimeo video, continuing...");
region.$timeout((function (region) {
region.nextSlide();
})(region), 1000);
Expand Down

0 comments on commit db6cee8

Please sign in to comment.