Forums

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

Problem imbedding video to HTML confluence page

Sheran Buckman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 28, 2023

Hey everyone,

I'm writing this JS script to display some videos in a confluence page. But unfortunately there are no results or errors. Maybe I'm not doing something right?

 

This is what i tried to do,

1.  Post the attachments to the confluence page

2.  Get the attachment URI

3. Imbed it in confluence page.

 

problemDisplayingVideos Conflunce.PNG

1 answer

0 votes
Zain Khan February 7, 2024

It seems like you're facing difficulties embedding videos into a Confluence page using JavaScript. Here are some suggestions to troubleshoot the issue:

1. Check Attachment URI: Ensure that you are correctly retrieving the attachment URI of the video files uploaded to the Confluence page. You can verify this by logging the URI to the console or inspecting the network requests to see if the URI is being fetched correctly.

2. Verify Embedding Method: Confirm that you are using the correct method to embed videos in Confluence. Typically, you would use the `<ac:structured-macro>` macro to embed multimedia content like videos. Make sure that the macro is properly configured with the attachment URI.

3. Test with Direct Embedding: Instead of using JavaScript to dynamically embed videos, try directly embedding a video attachment using Confluence's built-in functionality. This can help determine if the issue lies with your JavaScript approach or if there are any configuration issues with Confluence.

4. Check Permissions: Ensure that the user running the JavaScript script has the necessary permissions to access and embed attachments in Confluence pages. Insufficient permissions could prevent the script from retrieving attachment URIs or embedding videos.

5. Debugging: Use browser developer tools to debug your JavaScript code. Check for any errors in the console log and inspect network requests to see if the attachment URIs are being fetched correctly. This can provide valuable insights into what might be going wrong.

By following these steps and carefully inspecting your JavaScript code and Confluence configuration, you should be able to identify and resolve the issue with embedding videos into your Confluence page.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events