Problem with <video> and <!-- pagebreak --> !!!

Post Reply
User avatar
jeronath
Sr. Bludit
Posts: 37
Joined: Tue Apr 26, 2022 11:54 am
Location: Paris
Has thanked: 3 times
Been thanked: 4 times
Contact:

Hello everyone,
I am facing a problem to which I cannot find a solution.

Currently in my site laminutespirituelle.fr, I integrate at the top of each article a video from my Telegram channel. Each page of the site includes seven articles and the source code shows me that each integrated Telegram video loads its linked script, which slows down the loading a lot, but it works.

To decrease the loading time I want to put the videos directly to my host and call them with the video tag.
So there would be the video in mp4 and webm, called by a video tag, followed by text, a pagebreak otherwise the plugins a2a share and snicker are not displayed.
In this case depending on the browser the video displays "No video with the format or type Mime was found" or it does not work. But if I click on "Read more" and the whole page of the article is displayed, the video is displayed perfectly and works.
In both cases the source code shows me well the <video>......</video> part which is therefore loaded.

As it stands I have only 2 solutions, I delete all pagebreak and my hosted videos will work but I would have no more possible shares or comments or I keep the slow version with Telegram videos embedded.

To see the problem live:
- current version with Telegram videos: https://laminutespirituelle.fr/theme/fi ... e-la-terre
- then Next and 2nd page : https://laminutespirituelle.fr/theme/fi ... rre?page=2 with the article "essai" in new version and no video
- then click on Read more for full page and it works...

Thank you to the specialists of Bludit to make me benefit from their lights !
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

The problem is the linking.

On the page the URL for the mp4 file is:

Code: Select all

https://laminutespirituelle.fr/bl-content/uploads/videos/01/01-1-converted.mp4
On the blog page the linking is:

Code: Select all

https://laminutespirituelle.fr/theme/bl-content/uploads/videos/01/01-1-converted.mp4
Therefore please use the absolute path:

Code: Select all

https://laminutespirituelle.fr/bl-content/uploads/videos/01/01-1-converted.mp4
instead of

Code: Select all

./bl-content/uploads/videos/01/01-1-converted.mp4
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
jeronath
Sr. Bludit
Posts: 37
Joined: Tue Apr 26, 2022 11:54 am
Location: Paris
Has thanked: 3 times
Been thanked: 4 times
Contact:

Edi wrote: Wed Nov 09, 2022 1:59 pm The problem is the linking.

..... please use the absolute path:

Code: Select all

https://laminutespirituelle.fr/bl-content/uploads/videos/01/01-1-converted.mp4
instead of

Code: Select all

./bl-content/uploads/videos/01/01-1-converted.mp4
Hello Edi,

I admit that I don't understand why you have to use the absolute path rather than the relative path since the video is internal to the site, but I see that with the absolute path it works!
So great! As always, you give excellent advice!

Now can you tell me if the fact that the a2a share and snicker plugins only work if there is a pagebreak is normal or have I made a mistake somewhere?

Best regards!
Post Reply