Originally Posted by
Lupus
Hello,
To use the mediaelement, you have to check the "mediaelement" in "JQuery" section when you create your layout.
Then, take care at the layout on the page you have video / audio elements.
If i doesn't work, maybe it's the browser who doesn't know how to read your file ?
https://developer.mozilla.org/en-US/..._media_formats
Hope it helps.
Hi.
Of course I included j_mediaelement in my Contao theme, but it still doesn't work in FF, Safari and IE.
It works in Chrome and Opera.
I read the article from your link. So If I am right for different browsers there should be different file's format:
HTML Code:
<source type="video/mp4" src="pics/video/gizmo.mp4"></source>
<source type="video/webm" src="pics/video/gizmo.webm"></source>
<source type="video/ogg" src="pics/video/gizmo.ogv"></source>
I did it. I decided to implement the code lines into my contao, using jQuery, but it doesn't work.
You can see it here:
http://know-it.kunden-webseiten.de/p.../zum-film.html
And this is my jquery code:
Code:
$(function(){
$video = $('video');
$video.append('<source type="video/mp4" src="files/praxis_jagdt/uploads/media/gizmo.mp4"></source>');
$video.append('<source type="video/webm" src="files/praxis_jagdt/uploads/media/gizmo.webm"></source>');
$video.append('<source type="video/ogg" src="files/praxis_jagdt/uploads/media/gizmo.ogv"></source>');
});
It is very simple code and just to test.
Please what did I do wrong?
Bookmarks