Commit fc275817 authored by Andreas Gärtner's avatar Andreas Gärtner

Task #16009: Add autoplay parameter to vimeo and youtube links.

parent b89b25c4
......@@ -85,10 +85,10 @@ Ext.define("ARSnova.controller.Application", {
if (element.tagName === 'SPAN' && element.className === 'videoImageContainer') {
switch (element.accessKey) {
case 'vimeo':
url = "https://player.vimeo.com/video/" + element.id;
url = "https://player.vimeo.com/video/" + element.id + "?autoplay=1";
break;
case 'youtube':
url = "https://www.youtube.com/embed/" + element.id;
url = "https://www.youtube.com/embed/" + element.id + "?autoplay=1";
break;
default:
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment