Needs review
Project:
Video Embed Twitch
Version:
8.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2021 at 15:05 UTC
Updated:
2 Feb 2021 at 15:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mohit.bansal623 commentedAs suggested, autoplay has been added in url as per the solution, can't we remove that autoplay from the parameters but I think that will break the functionality of the module.
Comment #3
fdverwoerd commentedHello
Mohit, bigmonmulgrew,I understand the variable is not used. But empty? That should not be? When did this happen?
If I dump the following it's either false or true based on your view mode settings.
/**
* {@inheritdoc}
*/
public function renderEmbedCode($width, $height, $autoplay) {
var_dump($width);
var_dump($height);
var_dump($autoplay);
die;
I get something like int(854) int(480) bool(false) back.
I guess we could add autoplay because some twitch providers support that.
https://dev.twitch.tv/docs/embed/video-and-clips