From 93d484dc72f73e15d73eeeb0829e70e53252dbc7 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 11 Nov 2016 15:13:25 +0300 Subject: [PATCH] [PPE embed] turn on player on app start --- apps/api/documents/api.js | 1 + apps/presentationeditor/embed/js/ApplicationController.js | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 4587dbcae..5ea9d4f1e 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -191,6 +191,7 @@ editorConfig: { licenseUrl: , customerId: , + autostart: 'document', // action for app's autostart. for presentations default value is 'player' embedded: { embedUrl: 'url', fullscreenUrl: 'url', diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index 71039061e..58bd58327 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -212,6 +212,7 @@ var ApplicationController = new(function(){ api.ShowThumbnails(false); api.asc_DeleteVerticalScroll(); + if (!embedConfig.autostart || embedConfig.autostart == 'player') onPlayStart(); hidePreloader(); if ( !embedConfig.shareUrl )