When watching videos using the YouTube embedded player, videos don't appear in my YouTube watch history, even when I'm logged in.
Is this the intended behavior? Is there a way to change it?
<iframe id="ytplayer" type="text/html" width="640" height="360"
src="https://www.youtube.com/embed/M7lc1UVf-VE?autoplay=1"
frameborder="0">
</iframe>
Thanks to @C3roe I found the solution:
A user has to manually start playing the video via the YouTube player, otherwise it doesn't count as a view and also doesn't show up in the user's watch history.
The YouTube iframe API mentions the views, it seems to also apply to the watch history:
Note: A playback only counts toward a video's official view count if it is initiated via a native play button in the player.