问题
Many resources claim that views of embedded youtube video DO count, if it there is no autoplay. But it doesn't count actually, and there is no autoplay! The code is:
<iframe width="420" height="315"
src="//www.youtube.com/embed/bPnFnHSSO3E?rel=0"
frameborder="0" allowfullscreen>
</iframe>
The views of the video using this code DO NOT COUNT even if I play the whole embedded video till the end! The views are incremented if watched directly on youtube, so it is not the "300 views problem".
I have tried to add the enablejsapi
option, but it doesn't work as well.
<iframe width="420" height="315"
src="//www.youtube.com/embed/bPnFnHSSO3E?rel=0&enablejsapi=1"
frameborder="0" allowfullscreen>
</iframe>
The rel=0
option is not affecting that either.
I have found several resources mentioning the issue but without clear solution:
- http://en.forums.wordpress.com/topic/my-embedded-videos-dont-count-as-views-on-youtube
- https://productforums.google.com/forum/#!topic/youtube/MYnJlwIPEts
- https://answers.yahoo.com/question/index?qid=20130215234209AAE0jH7
I was testing this in Chrome 34.0.1847.131 m (current version) in such a way that I had the video open on youtube, reloaded it, and the view count was one higher. Then I loaded the embedded videos in another tab, ran them till the end several times (sometimes I even tried to use private window and different IPs using two different proxies), and I reloaded the window on youtube - the view count was still only +1 higher, not +3 or +4 higher as it should be.
回答1:
Your video have 301 views, its a security system for the views, look:
When a video reach 301 views, the counter stop (is still counting on background) but youtube checks for the authenticity of the views, this takes a couple of days, remember, youtube works on a lot of servers at the same time, so they need to gather all the views metadata and aprove it (because a lot of people use robots to get a lot of views).
After aproval the view count goes back to normal.
Hope it helps
PD: sorry for the bad english.
回答2:
The only way to work around this I found was to check the Use old embed code
option:

so it generated the old embed code with <object>
, <embed>
and <param>
:
<object width="420" height="315"><param name="movie"
value="//www.youtube.com/v/bPnFnHSSO3E?version=3&hl=en_US"></param><param
name="allowFullScreen" value="true"></param><param name="allowscriptaccess"
value="always"></param><embed
src="//www.youtube.com/v/bPnFnHSSO3E?version=3&hl=en_US"
type="application/x-shockwave-flash" width="420" height="315"
allowscriptaccess="always" allowfullscreen="true"></embed></object>
This way, the views of embedded video DO count! (tested in Chrome 34.0.1847.131 m).
As noted in the youtube documentation, this code only supports Flash, not HTML5.
This is not a good solution though! But I don't know of any better now.
来源:https://stackoverflow.com/questions/23828555/youtube-embedded-video-views-do-not-count