Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5285 Lượt xem

Hey all, I am trying to play an embedded video on odoo website.  This video is stored on server itself. Please check below code and let me know what is wrong with it?
Video is working for chrome, firefox,etc but not on the safari. Is there any specific reason why video tag is not working in safari?
Need urgent help, thanks in advance!

JS:

passing video file path (src) from js as below:

$('#hpt-video').each(function () {
var videoPlayer = document.getElementById("hpt-video");
question.video_url.mp4 = '/smart_learn/static/src/video/video_name.mp4'

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
preload="yes"  loop width="100%" height="auto" autoplay loop muted playsinline


Ảnh đại diện
Huỷ bỏ
Tác giả

It is giving an syntactical error:

lxml.etree.XMLSyntaxError: Specification mandate value for attribute loop
lxml.etree.XMLSyntaxError: Specification mandate value for attribute autoplay

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 17
15647
1
thg 3 19
8185
1
thg 11 24
2506
3
thg 4 23
6778
3
thg 3 22
11959