Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: Luca on September 08, 2023, 14:33:16

Title: HTML5 Video
Post by: Luca on September 08, 2023, 14:33:16
Hello, everybody

I have a problem with this plug-in:

1) If I put it in a module in the frontpage, the message I get is "Firefox message: Your browser does not support HTML5 video!", but if I publish it in an authonomous page, it shows up;

2) When published, the page where it is in cannot be switched to another language

Thank you for any help

Gianluca





5.4 Rev 2523
Title: Re: HTML5 Video
Post by: webgift on September 08, 2023, 20:39:03
I had the same problem as you have. This issue was resolved by disabling Hardware Acceleration. Just follow the following steps.
Title: Re: HTML5 Video
Post by: Luca on September 08, 2023, 21:41:47
Hey, Webgift! Thank you!

Mmmm... I tested as you suggested but ...nop

BTW, this is happening exactly the same on Chrome, too

I was now making some tests and this is what I discovered:

Autonomous page
A) Javascript compression yes:
the video shows up and it plays;
the mainmenu is weird (only the Home button is shining);
it is not possible to change language

B) Javascript compression no:
the menu works perfectly;
the browser cannot play the video;
is possible to change language

Thank you,
Cheers!

Title: Re: HTML5 Video
Post by: webgift on September 09, 2023, 06:29:07
Hello,
Javascript compression no and disable HTML5 video content plugin.
Try create a new module (mod_content) with the following piece of code:
https://www.w3schools.com/tags/tag_video.asp
It will work!
Title: Re: HTML5 Video
Post by: Luca on September 09, 2023, 07:15:18
Thank you, Webgift!
Yes, it will work. I did the same for the frontpage.
I didn't saw in the forum others complaining about this issue so, I thing it's only me?
In your opinion, Webgift, will I be at all able to run this plug-in in my site, one day? :)

Thank you for your time and effort!

Please, have a great day!

Gianluca
Title: Re: HTML5 Video
Post by: webgift on September 09, 2023, 12:25:07
It will function once it will be updated as this is an Elxis core extension.
There are no other complaints cause users don't use it. This is what i can think of as a reason why right now.

You're welcome Gianluca!
Wish you have a wonderful day as well.
Title: Re: HTML5 Video
Post by: Luca on September 09, 2023, 12:55:08
Thanks to you!
Best wishes! :D
Title: Re: HTML5 Video
Post by: datahell on September 10, 2023, 21:40:47
The plugin has no problem. The problem is that you put it inside a module and most probably cache is enabled. If you integrate the plugin as usual inside an article I am sure it will work fine.
The Video plugin uses javascript in order to support old browsers and provide advanced functionality. When you integrate it inside a module, with cache enabled, most probably you have missing javascript or javascript error. Do you have also JS minifier enabled in Elxis configuration?

Adding a video the normal HTML5 way with the video tag, as Webgift proposed, is also a good idea. My advice would be also to provide an .ogg format as source in this case.
Title: Re: HTML5 Video
Post by: Luca on September 11, 2023, 09:06:43
Thank you, Datahell

Yes, you are confirming exactly what I came out with my testing. Were cache and JS minifier the issue. I managed to have now a wonderful looking setup. Thanks again!
Gianluca
Title: Re: HTML5 Video
Post by: webgift on September 11, 2023, 17:43:51
Good to read that issue found!
So a great upgrade for this extension is to support multiple video file types!  :)
Title: Re: HTML5 Video
Post by: Luca on September 11, 2023, 19:21:20
Happy to hear that, I can't wait
Thank you!
Title: Re: HTML5 Video
Post by: datahell on September 11, 2023, 19:21:33
So a great upgrade for this extension is to support multiple video file types!  :)

The built-in player already supports video with multiple formats/sources (ogv, ogg, webm, weba, mp4, m4v).

How it works:
Let's say you integrate video sample.mp4
In the same folder that the main video file exists upload the other formats keeping the same name: sample.ogg, sample.webm
The plugin will automatically detect them and load them all.

Note: You must be careful on which sites you enable the JS and CSS minifier. They are not suitable for all cases. After you enable them check the browser console for errors, mostly javascript. If you have javascript errors disable the minifier.
Title: Re: HTML5 Video
Post by: Luca on September 11, 2023, 22:08:22
Thank you for the note
Title: Re: HTML5 Video
Post by: webgift on September 12, 2023, 05:25:42
In the same folder that the main video file exists upload the other formats keeping the same name: sample.ogg, sample.webm
The plugin will automatically detect them and load them all.

Aha sorry it's my fault. I should check the source code as for the multiple video file types support.
Apologies!