Particle icon indicating copy to clipboard operation
Particle copied to clipboard

VIdeos autoplaying

Open Matthewus opened this issue 11 years ago • 23 comments

Hi! Some of the videos started autoplaying even though i did not change the settings. I tried to reset the settings and even reinstall the addon but the problem is still present. Some videos still do not autoplay. What can i do to find what causes the problem? I can see cross origin requests being blocked in the browser console, but i don't know what that means.

Matthewus avatar Sep 21 '15 10:09 Matthewus

I don't understand what is the problem, you mention that they autoplay and that they still do not autoplay. Can you be more clear?

Also please provide more details: https://github.com/ParticleCore/Particle/wiki/Report-a-problem

ParticleCore avatar Sep 21 '15 14:09 ParticleCore

Browser Name: Firefox

Browser Version: 40.0.3

Operating System: Windows 7

Software Type: Add-on

Software Version: 0.5.8

Problem Description: Some videos autoplaying when Autoplay videos is not checked. This autoplays: https://www.youtube.com/watch?v=0wdqF5zGQ_c This is not: https://www.youtube.com/watch?v=librIpBUJxU Expected behavior: videos shouldn't autoplay. Problem is present with the userscript version too. All other settings work fine.

Steps to reproduce:

Additional details: I disabled all other extensions, reinstalled YouTube Plus but the problem is still present.

Matthewus avatar Sep 21 '15 16:09 Matthewus

This is very strange, it does not autoplay here with the add-on and userscript versions. Can you share your settings?

ParticleCore avatar Sep 21 '15 16:09 ParticleCore

{ "GEN_BTTR_NTF": false, "GEN_SUB_LIST": false, "GEN_INF_SCRL": false, "GEN_BLUE_GLOW": false, "GEN_SDBR_ON": false, "VID_END_SHRE": false, "VID_DFLT_QLTY": "hd720", "VID_PLST_SEP": false, "VID_PLST_ATPL": true, "VID_PLST_RVRS": false, "VID_PLR_ALVIS": false, "VID_PLR_SIZE_MEM": false, "VID_PLR_DYN_SIZE": false, "VID_PLR_FIT_WDTH": "1280px", "VID_HIDE_COMS": "0", "VID_POST_TIME": false, "VID_VID_CNT": false, "VID_DESC_SHRT": false, "VID_SDBR_ALGN": "0", "BLK_ON": false, "volLev": 50, "plApl": false, "plRev": false, "advOpts": false, "blacklist": {}, "GEN_HDE_CHN_SDBR": false, "GEN_HDE_SRCH_SDBR": false, "GEN_HDE_RECM_SDBR": false, "GEN_HIDE_FTR": false, "GEN_CMPT_TTLS": false, "GEN_DSB_HVRC": false, "GEN_GRID_SRCH": false, "GEN_GRID_SUBS": false, "GEN_CHN_DFLT_PAGE": "default", "GEN_SPF_OFF": false, "GEN_REM_APUN": false, "GEN_YT_LOGO_LINK": false, "GEN_DSBL_ADS": false, "VID_LAYT_AUTO_PNL": false, "VID_HIDE_DETLS": false, "VID_TTL_CMPT": false, "VID_PLR_FIT": false, "VID_PLR_INFO": false, "VID_PLR_DASH": false, "VID_VOL_WHEEL": false, "VID_PLR_ALACT": false, "VID_PLR_VOL_MEM": false, "VID_PLR_ANTS": true, "VID_PLR_CC": false, "VID_PLR_ATPL": false, "VID_SUB_ADS": false, "VID_PLR_ADS": false }

Matthewus avatar Sep 21 '15 16:09 Matthewus

Just tried with your settings, the video does not Autoplay.

When the videos autoplay does their link show something like "t=X"? (X is any number)

Because this is a code that forces the video to play at that specific time, for example this is the video you previously said that didn't autoplay will play once you open it because of that time code:

https://www.youtube.com/watch?v=librIpBUJxU#t=32

ParticleCore avatar Sep 21 '15 16:09 ParticleCore

No, i do not have any time code at the end of the link.

Matthewus avatar Sep 21 '15 16:09 Matthewus

Then the issue might be related to a browser setting/conflict. To rule this out create a new profile and install just YT+ and see if the video still autoplays with autoplay disabled.

To use Firefox with a new profile follow these instructions: https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles#w_starting-the-profile-manager

ParticleCore avatar Sep 21 '15 16:09 ParticleCore

I think i found the cause of the problem. Previously i forgot to disable Noscript, and now that i did, your extension works fine. I was able to reproduce the problem in a clean profile installing Noscript and YouTube Plus using the default settings in both and this video: https://www.youtube.com/watch?v=0wdqF5zGQ_c

Matthewus avatar Sep 21 '15 17:09 Matthewus

Thank you for being so patient and letting me know what the cause was. I assume that this is now solved then, if you need anything else just let me know.

ParticleCore avatar Sep 21 '15 17:09 ParticleCore

It is not solved, because i would like to use Noscript. Can you reproduce the issue? If you cannot i will contact the Noscript developer.

Matthewus avatar Sep 21 '15 17:09 Matthewus

YT+ is a script itself, it needs to be allowed to run in YouTube for it to work and it also depends on other scripts that are present in the YouTube website. Is the Noscript active for YouTube?

ParticleCore avatar Sep 21 '15 17:09 ParticleCore

I have installed Noscript and I am using it with your default settings, I am able to replicate the problem now, will try to see if it is something I can fix or not.

ParticleCore avatar Sep 21 '15 17:09 ParticleCore

With my Noscript list and also with the default list the problem is present. In my list only doubleclick.net and googleadservices.com are disabled.

Matthewus avatar Sep 21 '15 17:09 Matthewus

I think I might have found a possible conflict. In YT+ go to the settings > Video > Player settings and enable Disable advertisements in the video page. Refresh the page and see if the video still autoplays.

ParticleCore avatar Sep 21 '15 17:09 ParticleCore

Now its good. I unchecked that option because i already use ublock origin and noscipt.

Matthewus avatar Sep 21 '15 18:09 Matthewus

For some reason when that option is disabled it causes the rest of YT+ to not work if the user also has Noscript installed. Will continue debugging to see what is the main cause.

ParticleCore avatar Sep 21 '15 18:09 ParticleCore

Set the previous YT+ setting to how it was when the video was autoplaying, then in Noscript click Allow doubleclick.net. Refresh and see if the video still autoplays.

ParticleCore avatar Sep 21 '15 18:09 ParticleCore

After further testing it seems that Noscript is interfering with the player autoplay function by blocking the before mentioned script. For now the solutions are either to enable the YT+ option I mentioned before or allow doubleclick.net in Noscript.

I am sorry but I can't find a way to fix this from YT+.

ParticleCore avatar Sep 21 '15 18:09 ParticleCore

Out of curiosity, what script in particular from doubleclick.net is interfering with YT+? Just a generic ad loader?

Zarggg avatar Sep 21 '15 18:09 Zarggg

It is not interfering with YT+, but with the YouTube player itself. Seems like there are certain conditions in the player which depend on the doubleclick response/fetch which if not met or stays stalled then the autoplay functionality does not work properly. So far this only happens with videos that contain advertisement.

I can't tell which script in particular it is because every doubleclick script is practically unique to the advertisement that it tried to load. It also appears that it is not restricted to just one in particular but to any coming from doubleclick.

ParticleCore avatar Sep 21 '15 18:09 ParticleCore