Я создал тестовую страницу с двумя примерами:
Iframe встраивает HTML
JavaScript SDK
Я попытался установить для параметра "queue-autoplay-next" значение false, но он не работает, и по окончании первого видео автоматически запускается второе.
Документация здесь: https://developer.dailymotion.com/player
Мой код:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<iframe frameborder="0" width="480" height="270"
src="//www.dailymotion.com/embed/video/x7024it?autoplay=true&ui-highlight=c90c0f&mute=0&queue-autoplay-next=false&sharing-enable=false&ui-logo=false&ui-start-screen-info=false&queue-enable=true"
allowfullscreen allow="autoplay">
</iframe>
<div id="player"></div>
<script src="https://api.dmcdn.net/all.js"></script>
<script>
var player = DM.player(document.getElementById("player"), {
video: "x7024it",
width: "100%",
height: "100%",
params: {
autoplay: true,
mute: false,
"queue-autoplay-next": false,
"ui-highlight": "c90c0f",
"sharing-enable": false,
"ui-logo": false,
"ui-start-screen-info": false,
"queue-enable": true
}
});
</script>
</body>
</html>