Chrome won't place .mp4 files in Confluence
Asked by Abi Kanagasabai:

Hi there,

It seems like Google Chrome does not play .mp4 files on Confluence. I have tried every possible video format (.mp4, .ogg, .avi, .wmv, .ogv, .webm) and with the appropriate codecs however, none of them work.

These videos are large (over 10MB in total) and stored in Nexus Repository Manager 3.0. When we asked Nexus to see if there's an issue from their end and they said it has to be with Confluence (no help). I can view Vimeo/Youtube videos and both {HTML tag amd multimedia tags can be used for them, however, nothing seems to work when it comes to .mp4 videos on Chrome! I checked many forums on this topic on Atlassian and the web, but could not find a solution that works :(

Current Confluence Version: 6.7.2

Current Google Chrome Version: 71.0

**Notes/Summary:**

1. Due to security reasons, we cannot use any public platforms including Vimeo/YouTube and can only use Nexus for hosting.

2. We can only use Chrome to view the videos.

3. Larger files so attaching to Confluence site is not an option (increasing Confluence space size is not an option either) .

4. Can use Nexus only as a hosting platform.

Please help!

Thanks in advance!


Answers:
author: Jared Brenner
body: Hi Abi,

Could you tell us a bit more about how you're trying to implement this? What macros have you tried to use?

Jared

comments: author: Abi Kanagasabai
body: Thanks for the response, Jared.

So far I've attempted using the following methods:

1. Widget Connector (entered Nexus' URL under 'Web Site's Widget URL)

Result: It displays the Widget Connector icon only

2. Entered JavaScript into HTML as a script

Result: It shows the video player without any content and the buttons are disabled.

3. Used the Multimedia Marco option and attached the video to the Confluence space (file size: 1mb)

Result: Since the trial video was very small, it played fine (the files I need to use are over 10mb+ and cannot attach to Confluence space due to size limitation)

4. HTML tags that were used:

a)

\<video width="320" height="240" controls\> \<source src="**NEXUS URL HERE**.mp4" type="video/mp4"\> Your browser does not support the video tag.\</video\>

b)

\<iframe src="**NEXUS URL HERE**.mp4" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen\>\</iframe\>

c)

Added codecs for .mp4 /.avi etc. files with the above HTML tags

All of the above only results in displaying video player section with controls disabled and no content to view.


author: Jared Brenner
body: That covers everything I would have tried. Have you been able to successfully stream Nexus content on other platforms?


author: Abi Kanagasabai
body: Interestingly enough, I am able to use the HTML tags to embed a ++JPG image++ to the Confluence space (filesize: 1mb) and there were no issues with that:  

\<html\>

\<body\>

\<h2\>HTML Image\</h2\>

\<img src="**NEXUS URL here**" alt="Trulli" width="500" height="333"\>

\</body\>

\</html\>


author: Jared Brenner
body: Is that linked file also locked behind a layer of authentication, or can it be accessed without logging in?

It may be worth trying to embed an .mp4 file outside of Confluence (even on a Wordpress page) just to see if it works.


author: Abi Kanagasabai
body: There were no issues with login/authentication when we attempted to embed a JPG image to Confluence. It uploaded without any issues and can be viewed.

Also, there were no issues embedding a .mp4 video to a wix website either (can't try Wordpress as we cannot download due to local admin restrictions).