slaent / issues

http://slaent.com
6 stars 1 forks source link

Twitch.tv live video embed auto-playing in front page last post preview #82

Open kibner opened 7 years ago

kibner commented 7 years ago

Issue: A twitch.tv live video embed auto-played through the front page last post preview feature

Steps to Reproduce: Embed a live twitch.tv stream (as opposed to a twitch.tv clip) in a thread that will be featured on the front page. https://www.twitch.tv/dotamajor was used to cause this issue.

Comments: It appears that the embed is already set to turn auto-play off. I wonder if this may be caused by it being a live stream. In case there is no way through the embed to stop the player, maybe change the last post preview to not render until the user clicks on the button to reveal it? And then dispose of the section after they move away from it so that it doesn't keep playing after they close the last post preview area.