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.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.