New update :
Hi,
With the same video content URL that is perfectly displayed using the past release (in Moodle), I have now a "Video format not supported" when I setup a new H5P activity after having updated the last H5P library.
This is the web console output:
Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://prismes.univ-toulouse.fr/video.php?code=4Oh2J87J&width=100%&heig.... Raison : l’en-tête CORS « Access-Control-Allow-Origin » ne correspond pas à « https://video-web01.univ-toulouse.fr ».[En savoir plus]
Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://prismes.univ-toulouse.fr/video.php?code=4Oh2J87J&width=100%&heig.... Raison : échec de la requête CORS.[En savoir plus]
Impossible de lire le média. Aucun décodeur pour les formats nécessaires : video/unknown
As previously said, the same video is currenctly presented without any problem with an instance of H5P activity before the update.
Any idea ?
Thanks.
Laurent
BV52
Mon, 11/12/2018 - 08:01
Permalink
Hi Laurent,In order to give
Hi Laurent,
In order to give your bug report the best chance of getting answered, please include the following information:
The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!
-BV52
l.dairaine
Tue, 11/13/2018 - 21:03
Permalink
Hi, here are the requested
Hi, here are the requested information :
1. Detailed steps to reproduce the bug (exactly how and when did it happen)
* Integrate in a interactive video the URL : https://prismes.univ-toulouse.fr/video.php?code=25030s0Y&width=100%&heig...
* Play the video
* The video display ""
12. latform and version number.
* Moodle Version: Moodle 3.5.2+ (Build: 20181107) Version 2018051702.14 Stable
3. Mobile or Desktop : Desktop
4. Browser: Chrome, Firefox, Safari etc : pbm with Chrome, Firefox, Safari (latest version)
5. H5P plugin version : 1.12 2018110600 (the same file was working Ok on the last version)
6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
* content type : Latest version
7. Any browser console errors: Information above
Console :
view.php?id=10:1 Access to video at 'https://prismes.univ-toulouse.fr/video.php?code=25030s0Y&width=100%&heig...' from origin 'https://adn.isae-supaero.fr' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://video-web01.univ-toulouse.fr' that is not equal to the supplied origin.
Any PHP errors : No
Thanks.
Laurent.
BV52
Wed, 11/14/2018 - 06:54
Permalink
Hi Laurent,Thank you for the
Hi Laurent,
Thank you for the information. The "Access-Control-Allow-Origin" message points to the server hosting the video does not allow embedding not unless the site you are embedding is allowed by the host.
Having said this please contact your server administrator to adjust your settings.
-BV52
l.dairaine
Wed, 11/14/2018 - 20:45
Permalink
Hi,Thanks for the reply. What
Hi,
Thanks for the reply. What level of setting is this ? Do you mean this is an Apache web server setting ? is it the Moodle server that serves the H5P or the video server that seems to redirect the video flow onto a second server ?
Thanks.
Laurent.
otacke
Thu, 11/15/2018 - 12:41
Permalink
Hi Laurent!The access rules
Hi Laurent!
The access rules for Cross Origin Resource Sharing (CORS) have to be configured in the web servers settings, Apache in your case.
Best,
Oliver
l.dairaine
Thu, 11/15/2018 - 12:43
Permalink
Yes, we did it on the Apache
Yes, we did it on the Apache server of the moodle instance, but no difference.
As we use external video server, does this setting must be put on the video server too (i.e., the one that change from a first URL to a second one for serving the video) ?
Thanks for your help.
otacke
Thu, 11/15/2018 - 12:48
Permalink
Hi Laurent!Yes. Since CORS is
Hi Laurent!
Yes. Since CORS is used, the access-control-allow-origin header that the video server returns must be valid too.
Cheers,
Oliver