From 250d19163b045b5ecd3ffeea4c65c7f4151cc907 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Thu, 30 Mar 2017 10:35:16 +0100 Subject: [PATCH] Set video source only when the onboarding prompt is shown. --- .../web/app/views/project/editor/feature-onboarding.pug | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/web/app/views/project/editor/feature-onboarding.pug b/services/web/app/views/project/editor/feature-onboarding.pug index ad62137241..833eac5a80 100644 --- a/services/web/app/views/project/editor/feature-onboarding.pug +++ b/services/web/app/views/project/editor/feature-onboarding.pug @@ -32,7 +32,7 @@ autoplay loop ) - source(src="/img/onboarding/review-panel/open-review.mp4", type="video/mp4") + source(ng-src="{{ '/img/onboarding/review-panel/open-review.mp4' }}", type="video/mp4") img(src="/img/onboarding/review-panel/open-review.gif") div(ng-show="onboarding.innerStep === 2;") video.feat-onboard-video( @@ -40,7 +40,7 @@ autoplay loop ) - source(src="/img/onboarding/review-panel/commenting.mp4", type="video/mp4") + source(ng-src="{{ '/img/onboarding/review-panel/commenting.mp4' }}", type="video/mp4") img(src="/img/onboarding/review-panel/commenting.gif") div(ng-show="onboarding.innerStep === 3;") video.feat-onboard-video( @@ -48,7 +48,7 @@ autoplay loop ) - source(src="/img/onboarding/review-panel/add-changes.mp4", type="video/mp4") + source(ng-src="{{ '/img/onboarding/review-panel/add-changes.mp4' }}", type="video/mp4") img(src="/img/onboarding/review-panel/add-changes.gif") div(ng-show="onboarding.innerStep === 4;") video.feat-onboard-video( @@ -56,7 +56,7 @@ autoplay loop ) - source(src="/img/onboarding/review-panel/accept-changes.mp4", type="video/mp4") + source(ng-src="{{ '/img/onboarding/review-panel/accept-changes.mp4' }}", type="video/mp4") img(src="/img/onboarding/review-panel/accept-changes.gif") button.btn.btn-primary.feat-onboard-nav-btn( ng-click="gotoNextStep();"