Add allowfullscreen param to web arte.tv service. Default value is allowed.
This commit is contained in:
parent
2452c5b924
commit
93ac6b3289
|
|
@ -939,13 +939,14 @@ tarteaucitron.services.artetv = {
|
||||||
video_json = x.getAttribute("json"),
|
video_json = x.getAttribute("json"),
|
||||||
video_width = x.getAttribute("width"),
|
video_width = x.getAttribute("width"),
|
||||||
video_height = x.getAttribute("height"),
|
video_height = x.getAttribute("height"),
|
||||||
video_frame;
|
video_frame,
|
||||||
|
video_allowfullscreen = x.getAttribute("allowfullscreen");
|
||||||
|
|
||||||
if (video_json === undefined) {
|
if (video_json === undefined) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
video_frame = '<iframe title="' + frame_title + '" style="transition-duration: 0; transition-property: no; margin: 0 auto; position: relative; display: block; background-color: #000000;" src="https://www.arte.tv/player/v5/index.php?json_url=' + video_json + '" width="' + video_width + '" height="' + video_height + '" scrolling="no" allowfullscreen="allowfullscreen"></iframe>';
|
video_frame = '<iframe title="' + frame_title + '" style="transition-duration: 0; transition-property: no; margin: 0 auto; position: relative; display: block; background-color: #000000;" src="https://www.arte.tv/player/v5/index.php?json_url=' + video_json + '" width="' + video_width + '" height="' + video_height + '" scrolling="no" ' + (video_allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
|
||||||
return video_frame;
|
return video_frame;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue