Tandashi/YTSync-Plugin

Restore the 'Auto Play' status from before joining the sync session when leaving it

Tandashi opened this issue · 1 comments

It would be nice if the 'Auto Play' status was restored back to normal when leaving a sync session so you don't need to manually turn it back on everytime you watched something with someone else.

Might not be so easy since you can not always restore the stored setting since someone might change it manually.

Stored value: Autoplay on

Person start up new tab with youtube and no sync session -> we restore autoplay to on
Person disables autoplay in that tab
Person reloads tab -> we restore autoplay to on since it is what we have stored

Now we would have turned autoplay back on although the person has disabled it manually.

To fix this we might need to listen to every toggle of the autoplay button and store the value in the localstorage even outside sync sessions to be able to restore the correct state everytime. Just something we need to keep in mind.