Add announcements with videos OJS 33016

Hello
I’m having trouble loading and displaying videos from journal announcements OJS 33016. The “Text Editor Extras” plugin is activated to load HTML “iframe” or “video” elements, “config.inc.php” is set to “allowed_html” to include elements such as “iframe” or “video”. The videos are displayed during loading but disappear in the journal announcements space.
best regards


Hi @alexpineda,

Interesting… would you mind sharing a sample snippet of the HTML code that you’re using in TinyMCE?

-Roger
PKP Team

The following was as a test

“<“video width=“320” height=“240” controls>
“<“source src=”/public/journals/18/sample.mp4” type=“video/mp4"”>”
</video”>"

“<“iframe width=“560” height=“315” src=“YouTube” title=“YouTube video player” frameborder=“0” allow=“accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share” referrerpolicy=“strict-origin-when-cross-origin” allowfullscreen></iframe”>”

Hi @alexpineda,

I’m not sure about the iframe just yet, but, can you modify the video to this:
<video controls="controls" width="“320”" height="240”"> <source src="https://ojs33.testdrive.publicknowledgeproject.org/index.php/testdrive-journal/libraryFiles/downloadPublic/4/video-sample.mp4” type=" /></video>

How did you upload the mp4 file to your site.
With the video, perhaps try uploading it to the Workflow → Publisher Library, and then link to the URL it provides. I was able to get it to preview properly but not display in the site itself.

Could you give that a try and let me know if that makes a difference?

-Roger
PKP Team

we have the same results but with an error when saving “an unexpected error has occurred. please reload the page and try again” we will also validate the logs together with the technical area

You would have to add the new html elements to the allowed_html configuration in config.inc.php