Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Embed the Confluence content player with iframe src

David Choi
Contributor
November 13, 2018

Hello,

 

I need to know the src attribute for embeding the Confluence out-of-the-box content player (PowerPoint player).

This I need to embed into a course in LearnUp LMS (Confluence addon), the powerpoint file itself is stored and attached to a confluence site.

I tried to use this html embed code, but it does not show the content player. It will trigger the download of the powerpoint attachment file instantly.

<iframe height="375" width="600" src="https://MYCONFLUENCEURL/download/attachments/23592972/test.pptx"></iframe>

 I found a workaround, which includes the powerpoint content player, but it requires office 365 / onedrive. It means that the powerpoint file must be stored in OneDrive, which is not acceptable.

https://support.office.com/en-us/article/embed-a-presentation-in-a-web-page-or-blog-19668a1d-2299-4af3-91e1-ae57af723a60

 

Many thanks!

 

Regards,

David

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 15, 2018

Hey David,

I've tried getting this working down the road you've looked at - using Confluence's own viewer to try and display a PowerPoint deck in LearnUp. First I tried just grabbing the HTML off a viewer page. That doesn't contain the CSS styles though, so things like the controls didn't show up. Then I scraped the CSS which made the first page display properly, but the javascript controls to advance the slides didn't work. I also hit "request entity too large" a couple times already which makes me sure that even trying to include the javascript in addition to all the necessary HTML and CSS won't fit within the limits.

So without some serious heavy lifting in trying to re-architect the PowerPoint viewer's source, I don't think this will happen with Confluence's inbuilt viewer. The viewer just wasn't built with this kind of use-case in mind.

Some other options I came up with while playing around:

  1. Embed code using SlideShare (which is designed with embedding in mind) - this has the unfortunate effect of making your presentation public though as SlideShare no longer supports embeds for private presentations
  2. Video instead - PowerPoint does provide tools for recording your presentation and exporting as a video.
  3. Image or PDF instead - you can use PowerPoint's export tools to go to JPG (if there's not a ton of slides, since these have to be created in LearnUp one-by-one) or PDF and then upload into LearnUp as those content types

Hope this helps and I wish you the best in your course creation!

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events