0

I'm trying to render a Google Slides presentation in my web app and control it (move slides) using buttons on my web app.
If I embed it using iframe, then I can't send key/mouse events to that iframe since it's not the same origin, and I don't want to use Google's embedded control bar, since I need my own custom controls.

Therefor I'm trying to achieve this using the Google Slides API.
I found some relevant APIs like this one but I don't understand whether I can render the presentation in my DOM.
Is it possible to render an existing presentation and navigate / control it using the API?

amiregelz
  • 1,833
  • 7
  • 25
  • 46
  • That `move` API is an "update" operation that reorders the presentation. The Google Slides API isn't a rendering / drawing interface - it's a crud interface. – tehhowch Jan 14 '21 at 00:53
  • I'm not sure I understand correctly, do you want to control the actual presentation via API? Something like a automatic presentation in an iframe? What exactly are you trying to render in an iframe right now? Can you share whatever code you have? My first instinct is that you can't do what you want with the API, but maybe an Apps Script web app could be a possibility, but I'm not sure that this is what you want. – iansedano Jan 14 '21 at 08:19
  • @iansedano I want to render an existing presentation based on a url given by the user, but control it using my own buttons (so that the user won't have to focus on the iframe or use the embedded control navigation in order to move slides - but only click on my buttons which are outside the iframe). So yes, I want to control the presentation navigation using code. The problem is that if I render it as an embedded iframe, I can't interact with it programmatically. – amiregelz Jan 14 '21 at 09:23
  • I also looked for a similar solution for rendering & navigating a PPT presentation uploaded by the user as an alternative, but figured it will be even more complicated to achieve. – amiregelz Jan 14 '21 at 09:25

1 Answers1

3

There is a feature request for that API functionality

https://issuetracker.google.com/36760981

Go give it a ☆ if you want to see it implemented.

Please do not just comment "+1" - a star is enough

Workaround

  • Export it using the Drive API.
  • With the resulting images or PDF, create your own slide show functionality (I know, not ideal...but possible)
iansedano
  • 6,169
  • 2
  • 12
  • 24
  • Thanks! I starred it. It could be super useful for many use cases. Do you maybe know what are the timelines for these type of feature requests? can I get any estimations? – amiregelz Jan 19 '21 at 15:06
  • No ETA I'm afraid, I wouldn't count on it if you need something urgent! – iansedano Jan 20 '21 at 10:21
  • Really hoping they decide to take this on, however I can see reasons why they wouldn't – jonnycraze Aug 09 '23 at 20:16